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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009403/0.0009403, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9615/0.9615, allocations: 177 MB / 205.1 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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=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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.474e-05/1.588e-05, allocations: 5.125 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01704/0.01706, allocations: 8.976 MB / 282.3 MB, free: 8.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003128/0.02019, allocations: 2.426 MB / 284.7 MB, free: 5.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00062/0.02081, allocations: 35.81 kB / 284.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006528/0.02146, allocations: 344.9 kB / 285.1 MB, free: 5.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000834/0.02229, allocations: 0.5305 MB / 285.6 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000855/0.02315, allocations: 0.6631 MB / 286.3 MB, free: 4.172 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001914/0.02506, allocations: 2.433 MB / 288.7 MB, free: 1.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008729/0.02593, allocations: 0.7022 MB / 289.4 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1241/0.1501, allocations: 1.316 MB / 290.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009724/0.151, allocations: 0.6939 MB / 291.5 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000366/0.1514, allocations: 279.1 kB / 291.7 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005141/0.1519, allocations: 353.4 kB / 292.1 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.1522, allocations: 0.5234 MB / 292.6 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004694/0.1527, allocations: 0.6927 MB / 293.3 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.154, allocations: 1.641 MB / 294.9 MB, free: 16.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.154, allocations: 2.641 kB / 294.9 MB, free: 16.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.154, allocations: 0 / 294.9 MB, free: 16.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.154, allocations: 0.875 kB / 294.9 MB, free: 16.63 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.001898/0.1559, allocations: 2.02 MB / 297 MB, free: 15.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1559, allocations: 15.58 kB / 297 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003373/0.1562, allocations: 317.5 kB / 297.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006856/0.1569, allocations: 0.7834 MB / 298.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.1571, allocations: 437.7 kB / 298.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.1573, allocations: 166.3 kB / 298.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.1586, allocations: 1.257 MB / 299.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.1586, allocations: 4.375 kB / 299.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.909e-05/0.1587, allocations: 66.45 kB / 300 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.1587, allocations: 37.03 kB / 300 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008635/0.1596, allocations: 0.5708 MB / 300.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004293/0.1639, allocations: 4.854 MB / 305.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006282/0.1645, allocations: 0.5079 MB / 305.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.1647, allocations: 207 kB / 306.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.554e-05/0.1648, allocations: 15.69 kB / 306.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003698/0.1651, allocations: 0.6192 MB / 306.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.134e-06/0.1651, allocations: 5.078 kB / 306.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.00647/0.1716, allocations: 4.129 MB / 310.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.1716, allocations: 305.2 kB / 311.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.172, allocations: 0.6849 MB / 311.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.566e-05/0.1721, allocations: 55.33 kB / 312 MB, free: 8.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002301/0.1723, allocations: 0.7409 MB / 312.7 MB, free: 8.137 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1725, allocations: 428.9 kB / 313.1 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.1728, allocations: 257.9 kB / 313.4 MB, free: 7.637 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.421e-05/0.1729, allocations: 0.5843 MB / 314 MB, free: 7.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.1732, allocations: 264.4 kB / 314.2 MB, free: 6.832 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/0.1736, allocations: 0.8897 MB / 315.1 MB, free: 5.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006463/0.1742, allocations: 0.8497 MB / 316 MB, free: 4.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1742, allocations: 3.938 kB / 316 MB, free: 4.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001075/0.1753, allocations: 1.094 MB / 317 MB, free: 3.773 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1753, allocations: 12.06 kB / 317.1 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1753, allocations: 4 kB / 317.1 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.1756, allocations: 190.2 kB / 317.3 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007094/0.1763, allocations: 340.9 kB / 317.6 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.1782, allocations: 5.591 MB / 323.2 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006031/0.1788, allocations: 139.9 kB / 323.3 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/0.1788, allocations: 40 kB / 323.3 MB, free: 13.19 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (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.0003074/0.1792, allocations: 245.5 kB / 323.6 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.1793, allocations: 147.3 kB / 323.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.1794, allocations: 133.7 kB / 323.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.1794, allocations: 12 kB / 323.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1794, allocations: 2.406 kB / 323.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.1795, allocations: 3.984 kB / 323.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.1824, allocations: 2.624 MB / 326.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.1824, allocations: 8 kB / 326.5 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005192/0.1829, allocations: 243.4 kB / 326.8 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002862/0.1832, allocations: 238.2 kB / 327 MB, free: 9.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.284e-05/0.1832, allocations: 39.92 kB / 327 MB, free: 9.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.1842, allocations: 2.619 MB / 329.6 MB, free: 6.793 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.1842, allocations: 15.66 kB / 329.7 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.1856, allocations: 1.431 MB / 331.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.1859, allocations: 256.2 kB / 331.3 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.186, allocations: 47.55 kB / 331.4 MB, free: 4.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004346/0.1864, allocations: 115.9 kB / 331.5 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.1866, allocations: 151.3 kB / 331.6 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.1867, allocations: 35.98 kB / 331.7 MB, free: 4.617 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002588/0.1869, allocations: 414.4 kB / 332.1 MB, free: 4.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1869, allocations: 2.297 kB / 332.1 MB, free: 4.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000721/0.1876, allocations: 336 kB / 332.4 MB, free: 3.922 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (110): * Single equations (assignments): 108 * 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.0007172/0.1884, allocations: 402.4 kB / 332.8 MB, free: 3.691 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.1895, allocations: 1.261 MB / 334.1 MB, free: 2.445 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.1895, allocations: 1.875 kB / 334.1 MB, free: 2.445 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000451/0.1899, allocations: 0.5167 MB / 334.6 MB, free: 1.965 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006356/0.1906, allocations: 223.2 kB / 334.8 MB, free: 1.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.1938, allocations: 2.782 MB / 337.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.194, allocations: 259.9 kB / 337.8 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004201/0.1944, allocations: 160 kB / 338 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005122/0.1949, allocations: 289.3 kB / 338.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.1949, allocations: 0 / 338.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Templates: time 0.02917/0.2241, allocations: 19.9 MB / 358.2 MB, free: 10.46 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] 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.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.247515330091119]