Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 109.7 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 47.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.272, allocations: 49.43 MB / 400.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01113/0.2832, allocations: 9.278 MB / 410 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005479/0.2887, allocations: 2.286 MB / 412.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001986/0.2908, allocations: 31.88 kB / 412.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.2923, allocations: 325 kB / 412.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002522/0.2948, allocations: 0.5036 MB / 413.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00198/0.2968, allocations: 0.6478 MB / 413.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003939/0.3008, allocations: 2.349 MB / 416.1 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.3031, allocations: 1.12 MB / 417.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001513/0.3046, allocations: 0.8568 MB / 418.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001727/0.3063, allocations: 0.8793 MB / 419 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007595/0.3071, allocations: 276 kB / 419.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008765/0.308, allocations: 339.9 kB / 419.6 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007013/0.3087, allocations: 0.4948 MB / 420.1 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001694/0.3104, allocations: 0.9725 MB / 421.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003986/0.3144, allocations: 3.345 MB / 424.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3144, allocations: 0 / 424.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3145, allocations: 0 / 424.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.301e-05/0.3145, allocations: 4 kB / 424.4 MB, free: 1.184 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.00372/0.3183, allocations: 1.924 MB / 426.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.3183, allocations: 12.03 kB / 426.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.3186, allocations: 182.9 kB / 426.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.3198, allocations: 0.8381 MB / 427.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002549/0.32, allocations: 236.7 kB / 427.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002188/0.3202, allocations: 159.9 kB / 427.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002758/0.323, allocations: 1.678 MB / 429.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-05/0.3231, allocations: 15.89 kB / 429.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.3232, allocations: 60 kB / 429.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.817e-05/0.3233, allocations: 36 kB / 429.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.3263, allocations: 1.566 MB / 431.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008005/0.3343, allocations: 5.817 MB / 436.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.3361, allocations: 0.9528 MB / 437.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009146/0.337, allocations: 0.5287 MB / 438.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.273e-05/0.3371, allocations: 9 kB / 438.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.3382, allocations: 0.6646 MB / 439.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.515e-06/0.3382, allocations: 0 / 439.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03001/0.3683, allocations: 8.923 MB / 448 MB, free: 9.027 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.3684, allocations: 303.7 kB / 448.3 MB, free: 8.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.3694, allocations: 0.7934 MB / 449.1 MB, free: 7.863 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.779e-05/0.3696, allocations: 53.7 kB / 449.2 MB, free: 7.805 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004887/0.37, allocations: 0.6583 MB / 449.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.3704, allocations: 406.2 kB / 450.2 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004504/0.3708, allocations: 243.5 kB / 450.4 MB, free: 6.484 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.371, allocations: 410.7 kB / 450.8 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.3727, allocations: 0.8082 MB / 451.7 MB, free: 5.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.3746, allocations: 1.13 MB / 452.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003151/0.3778, allocations: 1.65 MB / 454.4 MB, free: 2.281 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.3778, allocations: 4 kB / 454.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004144/0.3819, allocations: 2.072 MB / 456.5 MB, free: 192 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.382, allocations: 8 kB / 456.5 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.382, allocations: 8 kB / 456.5 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003973/0.3824, allocations: 178.5 kB / 456.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/0.3839, allocations: 363.4 kB / 457.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003634/0.3876, allocations: 4.803 MB / 461.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.389, allocations: 167.8 kB / 462 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.3891, allocations: 52 kB / 462.1 MB, free: 10.2 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 (168): * Single equations (assignments): 165 * 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.0006979/0.3898, allocations: 387.2 kB / 462.4 MB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.39, allocations: 102.7 kB / 462.6 MB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.3903, allocations: 138 kB / 462.7 MB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3903, allocations: 12 kB / 462.7 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3903, allocations: 0 / 462.7 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.3903, allocations: 7.969 kB / 462.7 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007074/0.3974, allocations: 4.416 MB / 467.1 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.3974, allocations: 12 kB / 467.1 MB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.3985, allocations: 255.6 kB / 467.4 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005627/0.3991, allocations: 373.8 kB / 467.7 MB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-05/0.3992, allocations: 39.98 kB / 467.8 MB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.4008, allocations: 2.275 MB / 470.1 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/0.4008, allocations: 15.94 kB / 470.1 MB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.4052, allocations: 2.49 MB / 472.6 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000552/0.4058, allocations: 323.7 kB / 472.9 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.406, allocations: 48 kB / 472.9 MB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009358/0.4069, allocations: 139.8 kB / 473.1 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/0.4072, allocations: 168.2 kB / 473.2 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.074e-05/0.4073, allocations: 51.92 kB / 473.3 MB, free: 14.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006676/0.408, allocations: 0.5264 MB / 473.8 MB, free: 13.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.408, allocations: 0 / 473.8 MB, free: 13.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001108/0.4091, allocations: 344 kB / 474.1 MB, free: 13.57 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002777/0.4094, allocations: 191.3 kB / 474.3 MB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003619/0.413, allocations: 2.046 MB / 476.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.4131, allocations: 9.75 kB / 476.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.4151, allocations: 1.047 MB / 477.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.4162, allocations: 203 kB / 477.6 MB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005098/0.4213, allocations: 3.062 MB / 480.7 MB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007387/0.4221, allocations: 1.19 MB / 481.9 MB, free: 5.582 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006862/0.4228, allocations: 172.3 kB / 482.1 MB, free: 5.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.4231, allocations: 75.44 kB / 482.1 MB, free: 5.336 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4231, allocations: 0 / 482.1 MB, free: 5.336 MB / 398.1 MB Notification: Performance of Templates: time 0.03152/0.4547, allocations: 19.03 MB / 0.4894 GB, free: 2.434 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches