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.001081/0.001081, allocations: 98.23 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 195.1 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.7 MB / 246.4 MB, free: 9.738 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.000211, allocations: 8 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.08934, allocations: 51.52 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008514/0.0979, allocations: 8.247 MB / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004262/0.1022, allocations: 2.334 MB / 369.2 MB, free: 2.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008376/0.1031, allocations: 31.88 kB / 369.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006921/0.1038, allocations: 254.2 kB / 369.5 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.1048, allocations: 408.9 kB / 369.9 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008877/0.1057, allocations: 359.5 kB / 370.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1702/0.2758, allocations: 2.089 MB / 372.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001834/0.2777, allocations: 0.8195 MB / 373.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.2788, allocations: 0.5892 MB / 373.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008409/0.2797, allocations: 0.6628 MB / 374.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.2799, allocations: 80.94 kB / 374.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003513/0.2802, allocations: 125.7 kB / 374.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003514/0.2806, allocations: 291.2 kB / 374.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003229/0.2809, allocations: 345.7 kB / 375.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002938/0.2839, allocations: 2.717 MB / 377.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.2839, allocations: 0.6562 kB / 378 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2839, allocations: 0 / 378 MB, free: 9.141 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.178e-05/0.284, allocations: 1.312 kB / 378 MB, free: 9.141 MB / 302.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.003493/0.2875, allocations: 1.662 MB / 379.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2875, allocations: 9.75 kB / 379.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000356/0.2879, allocations: 179.4 kB / 379.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.289, allocations: 0.8143 MB / 380.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002547/0.2893, allocations: 245.9 kB / 380.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002402/0.2895, allocations: 161.5 kB / 381 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003216/0.2928, allocations: 1.669 MB / 382.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.957e-05/0.2928, allocations: 7.875 kB / 382.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/0.293, allocations: 67.72 kB / 382.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-05/0.293, allocations: 37.88 kB / 382.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003363/0.2964, allocations: 1.546 MB / 384.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00942/0.3058, allocations: 5.973 MB / 390.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3077, allocations: 0.947 MB / 391.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009785/0.3087, allocations: 0.511 MB / 391.8 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.185e-05/0.3088, allocations: 17.06 kB / 391.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/0.3099, allocations: 0.6515 MB / 392.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.575e-06/0.3099, allocations: 1.062 kB / 392.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.03089/0.3408, allocations: 9.709 MB / 402.1 MB, free: 13.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.341, allocations: 303.7 kB / 402.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.3424, allocations: 0.7896 MB / 403.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.3425, allocations: 53.7 kB / 403.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005775/0.3431, allocations: 0.6714 MB / 404 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004223/0.3436, allocations: 408.6 kB / 404.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.3437, allocations: 24 kB / 404.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3439, allocations: 410.7 kB / 404.8 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.3457, allocations: 0.8238 MB / 405.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002111/0.3479, allocations: 1.134 MB / 406.7 MB, free: 8.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/0.3497, allocations: 0.8017 MB / 407.5 MB, free: 8.113 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3497, allocations: 0.6562 kB / 407.5 MB, free: 8.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004596/0.3543, allocations: 2.098 MB / 409.6 MB, free: 6.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.3544, allocations: 8 kB / 409.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3544, allocations: 7.469 kB / 409.7 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004608/0.3548, allocations: 225.7 kB / 409.9 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.3565, allocations: 369 kB / 410.2 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003652/0.3601, allocations: 4.495 MB / 414.7 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.3617, allocations: 215.8 kB / 414.9 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.3618, allocations: 52 kB / 415 MB, free: 328 kB / 318.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,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009042/0.3627, allocations: 392.6 kB / 415.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.3629, allocations: 109.5 kB / 415.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003148/0.3633, allocations: 134 kB / 415.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.3633, allocations: 16 kB / 415.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3633, allocations: 0 / 415.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.3633, allocations: 7.969 kB / 415.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00764/0.371, allocations: 4.463 MB / 420.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.371, allocations: 8 kB / 420.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.3721, allocations: 284 kB / 420.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004884/0.3726, allocations: 282.5 kB / 420.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.062e-05/0.3728, allocations: 39.94 kB / 420.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/0.3744, allocations: 2.097 MB / 422.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.3744, allocations: 15.94 kB / 422.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004647/0.379, allocations: 2.487 MB / 425.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007359/0.3798, allocations: 327.7 kB / 425.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/0.38, allocations: 43.98 kB / 425.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.381, allocations: 183.8 kB / 425.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003277/0.3814, allocations: 180.2 kB / 426 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.601e-05/0.3815, allocations: 51.98 kB / 426.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007945/0.3823, allocations: 0.5303 MB / 426.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.3823, allocations: 1.75 kB / 426.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001317/0.3836, allocations: 343.9 kB / 426.9 MB, free: 3.953 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000926/0.3846, allocations: 432.4 kB / 427.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004051/0.3886, allocations: 2.054 MB / 429.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.3886, allocations: 4 kB / 429.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.3908, allocations: 1.068 MB / 430.5 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.3921, allocations: 196.3 kB / 430.7 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.3981, allocations: 3.774 MB / 434.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/0.3989, allocations: 1.179 MB / 435.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001068/0.4, allocations: 188.4 kB / 435.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.4004, allocations: 75.44 kB / 435.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of SimCode: time 9.41e-07/0.4004, allocations: 0 / 435.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Templates: time 0.02876/0.4292, allocations: 17.21 MB / 453.1 MB, free: 9.801 MB / 366.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