Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 164.3 kB / 24.99 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9288/0.9288, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.021e-05/3.189e-05, allocations: 2.312 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008518/0.00855, allocations: 9.252 MB / 282.3 MB, free: 8.527 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003818/0.01237, allocations: 2.423 MB / 284.7 MB, free: 6.098 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006415/0.01301, allocations: 35.81 kB / 284.8 MB, free: 6.062 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006718/0.01368, allocations: 352.9 kB / 285.1 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001112/0.01479, allocations: 0.5267 MB / 285.6 MB, free: 5.184 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008133/0.01561, allocations: 0.6631 MB / 286.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001605/0.01721, allocations: 2.445 MB / 288.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.01825, allocations: 0.6944 MB / 289.4 MB, free: 1.324 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.01933, allocations: 1.314 MB / 290.8 MB, free: 8 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1095/0.1289, allocations: 0.698 MB / 291.5 MB, free: 17.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006243/0.1295, allocations: 279.1 kB / 291.7 MB, free: 17.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006076/0.1301, allocations: 354.4 kB / 292.1 MB, free: 17.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.1304, allocations: 0.5218 MB / 292.6 MB, free: 17.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008878/0.1313, allocations: 0.693 MB / 293.3 MB, free: 17.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.1333, allocations: 1.64 MB / 294.9 MB, free: 17.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1333, allocations: 1.234 kB / 294.9 MB, free: 17.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1333, allocations: 0 / 294.9 MB, free: 17.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.445e-05/0.1333, allocations: 2.719 kB / 294.9 MB, free: 17.3 MB / 266.7 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.002959/0.1363, allocations: 2.005 MB / 296.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1363, allocations: 9.5 kB / 296.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005026/0.1368, allocations: 320.4 kB / 297.3 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009587/0.1378, allocations: 0.7877 MB / 298 MB, free: 16.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002222/0.138, allocations: 445.6 kB / 298.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/0.1382, allocations: 165.7 kB / 298.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.1401, allocations: 1.354 MB / 300 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.476e-05/0.1401, allocations: 4.594 kB / 300 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.1402, allocations: 69.31 kB / 300.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.89e-05/0.1403, allocations: 37.25 kB / 300.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.1418, allocations: 0.7166 MB / 300.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005129/0.1469, allocations: 4.82 MB / 305.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009615/0.1479, allocations: 0.5695 MB / 306.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.1483, allocations: 240.4 kB / 306.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.863e-05/0.1483, allocations: 20 kB / 306.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006622/0.149, allocations: 0.6465 MB / 307.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.755e-06/0.149, allocations: 0 / 307.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.01129/0.1603, allocations: 4.801 MB / 311.9 MB, free: 8.938 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.1603, allocations: 305.1 kB / 312.2 MB, free: 8.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007082/0.161, allocations: 0.7031 MB / 312.9 MB, free: 8.141 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.572e-05/0.1611, allocations: 52.39 kB / 313 MB, free: 8.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.1615, allocations: 0.7274 MB / 313.7 MB, free: 7.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/0.1617, allocations: 433.2 kB / 314.1 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003617/0.1621, allocations: 257.2 kB / 314.4 MB, free: 6.734 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1622, allocations: 0.5742 MB / 314.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007149/0.1629, allocations: 347.8 kB / 315.3 MB, free: 5.809 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008589/0.1637, allocations: 0.9622 MB / 316.2 MB, free: 4.648 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.165, allocations: 0.955 MB / 317.2 MB, free: 3.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.165, allocations: 4 kB / 317.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002076/0.1671, allocations: 1.248 MB / 318.5 MB, free: 2.371 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1671, allocations: 14.02 kB / 318.5 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.1671, allocations: 4 kB / 318.5 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003814/0.1675, allocations: 190.9 kB / 318.7 MB, free: 2.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.1686, allocations: 341.2 kB / 319 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/0.1715, allocations: 5.669 MB / 324.7 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009286/0.1725, allocations: 140 kB / 324.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.1726, allocations: 48 kB / 324.8 MB, free: 11.65 MB / 282.7 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.0004624/0.173, allocations: 251 kB / 325.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.1733, allocations: 151.3 kB / 325.2 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.1734, allocations: 125.8 kB / 325.4 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.1734, allocations: 12 kB / 325.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.1735, allocations: 3.938 kB / 325.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.1735, allocations: 7.969 kB / 325.4 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/0.1783, allocations: 2.913 MB / 328.3 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.1783, allocations: 8 kB / 328.3 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007922/0.1791, allocations: 243 kB / 328.5 MB, free: 7.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004064/0.1795, allocations: 239.2 kB / 328.8 MB, free: 7.598 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.083e-05/0.1796, allocations: 43.98 kB / 328.8 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.181, allocations: 2.654 MB / 331.5 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.181, allocations: 14.41 kB / 331.5 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.1832, allocations: 1.569 MB / 333.1 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004346/0.1837, allocations: 255.1 kB / 333.3 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.1838, allocations: 44 kB / 333.3 MB, free: 2.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006792/0.1845, allocations: 111.9 kB / 333.5 MB, free: 2.598 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005675/0.1851, allocations: 158.8 kB / 333.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.1852, allocations: 47.98 kB / 333.7 MB, free: 2.402 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004991/0.1857, allocations: 442.9 kB / 334.1 MB, free: 1.973 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1857, allocations: 0 / 334.1 MB, free: 1.973 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001111/0.1868, allocations: 348 kB / 334.4 MB, free: 1.633 MB / 282.7 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.0009731/0.1877, allocations: 399.3 kB / 334.8 MB, free: 1.406 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002061/0.1898, allocations: 1.383 MB / 336.2 MB, free: 16 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.1898, allocations: 8.062 kB / 336.2 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008303/0.1906, allocations: 0.5407 MB / 336.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.1917, allocations: 226.6 kB / 337 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/0.1967, allocations: 2.85 MB / 339.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.1969, allocations: 253.4 kB / 340.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006698/0.1976, allocations: 168 kB / 340.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.1979, allocations: 80.5 kB / 340.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of SimCode: time 1.473e-06/0.1979, allocations: 0 / 340.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of Templates: time 0.0281/0.226, allocations: 18.48 MB / 358.8 MB, free: 9.508 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.325224987929687]