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.001379/0.001379, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001028/0.001028, allocations: 161 kB / 24.99 MB, free: 8.223 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.929/0.929, allocations: 177 MB / 205.2 MB, free: 5.586 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.353e-06/1.353e-06, allocations: 0 / 273 MB, free: 1.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.663e-05, allocations: 2.312 kB / 273 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01898/0.019, allocations: 9.238 MB / 282.3 MB, free: 8.426 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003654/0.02265, allocations: 2.43 MB / 284.7 MB, free: 5.988 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005536/0.02321, allocations: 27.88 kB / 284.7 MB, free: 5.961 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006389/0.02385, allocations: 352.8 kB / 285.1 MB, free: 5.613 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008873/0.02473, allocations: 0.5305 MB / 285.6 MB, free: 5.078 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009082/0.02564, allocations: 0.6631 MB / 286.2 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001872/0.02751, allocations: 2.43 MB / 288.7 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008976/0.02841, allocations: 0.6983 MB / 289.4 MB, free: 1.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1137/0.1421, allocations: 1.324 MB / 290.7 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.1432, allocations: 0.6938 MB / 291.4 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005247/0.1437, allocations: 279.7 kB / 291.7 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006079/0.1443, allocations: 348 kB / 292 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003072/0.1446, allocations: 0.5269 MB / 292.5 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005367/0.1451, allocations: 0.6923 MB / 293.2 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00148/0.1466, allocations: 1.642 MB / 294.9 MB, free: 16.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1466, allocations: 1.594 kB / 294.9 MB, free: 16.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1466, allocations: 1.094 kB / 294.9 MB, free: 16.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.1466, allocations: 0.6094 kB / 294.9 MB, free: 16.24 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.002267/0.1489, allocations: 2.007 MB / 296.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1489, allocations: 12.17 kB / 296.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004177/0.1494, allocations: 323.1 kB / 297.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008115/0.1502, allocations: 0.7813 MB / 298 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.1504, allocations: 443.8 kB / 298.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.1505, allocations: 164.8 kB / 298.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.1523, allocations: 1.361 MB / 299.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.1523, allocations: 4.391 kB / 299.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.1524, allocations: 69.05 kB / 300 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/0.1525, allocations: 38.23 kB / 300 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.1538, allocations: 0.7112 MB / 300.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004761/0.1586, allocations: 4.823 MB / 305.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008964/0.1595, allocations: 0.5675 MB / 306.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.1598, allocations: 248.2 kB / 306.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.928e-05/0.1599, allocations: 20.81 kB / 306.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000501/0.1604, allocations: 0.6487 MB / 307.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.194e-06/0.1604, allocations: 0 / 307.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.00811/0.1685, allocations: 4.797 MB / 311.9 MB, free: 8.363 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.1685, allocations: 308.4 kB / 312.2 MB, free: 8.012 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005191/0.1691, allocations: 0.7045 MB / 312.9 MB, free: 7.566 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/0.1691, allocations: 52.45 kB / 312.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.1694, allocations: 0.7243 MB / 313.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.1696, allocations: 435.3 kB / 314.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.1699, allocations: 253.2 kB / 314.3 MB, free: 6.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.17, allocations: 0.582 MB / 314.9 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005441/0.1705, allocations: 348.4 kB / 315.2 MB, free: 5.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006611/0.1712, allocations: 0.9474 MB / 316.2 MB, free: 4.098 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.1721, allocations: 0.9526 MB / 317.1 MB, free: 3.043 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1721, allocations: 7.984 kB / 317.1 MB, free: 3.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.001499/0.1736, allocations: 1.254 MB / 318.4 MB, free: 1.809 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1737, allocations: 11.72 kB / 318.4 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.1737, allocations: 8 kB / 318.4 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003093/0.174, allocations: 191.1 kB / 318.6 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000805/0.1748, allocations: 333.1 kB / 318.9 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002782/0.1776, allocations: 5.665 MB / 324.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006525/0.1782, allocations: 140 kB / 324.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.986e-05/0.1783, allocations: 52 kB / 324.8 MB, free: 11.09 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.0003401/0.1786, allocations: 253.5 kB / 325 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.1788, allocations: 143.3 kB / 325.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.1789, allocations: 129.8 kB / 325.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1789, allocations: 12 kB / 325.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.179, allocations: 3.938 kB / 325.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.179, allocations: 7.969 kB / 325.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003571/0.1825, allocations: 2.918 MB / 328.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.1825, allocations: 8 kB / 328.2 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005852/0.1831, allocations: 246 kB / 328.5 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.1834, allocations: 231.2 kB / 328.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-05/0.1835, allocations: 39.97 kB / 328.7 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.1849, allocations: 2.659 MB / 331.4 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/0.1849, allocations: 11.38 kB / 331.4 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.1866, allocations: 1.566 MB / 333 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.187, allocations: 258.4 kB / 333.2 MB, free: 2.199 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.1871, allocations: 44 kB / 333.3 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004846/0.1876, allocations: 115.9 kB / 333.4 MB, free: 2.043 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.1878, allocations: 154.9 kB / 333.5 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.1878, allocations: 47.98 kB / 333.6 MB, free: 1.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003852/0.1882, allocations: 450.3 kB / 334 MB, free: 1.418 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1882, allocations: 0 / 334 MB, free: 1.418 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007514/0.189, allocations: 350.3 kB / 334.4 MB, free: 1.078 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.0008195/0.1898, allocations: 396.4 kB / 334.8 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.1917, allocations: 1.383 MB / 336.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1917, allocations: 8.25 kB / 336.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005816/0.1923, allocations: 0.5341 MB / 336.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007081/0.193, allocations: 227.4 kB / 336.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003505/0.1965, allocations: 2.849 MB / 339.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.1967, allocations: 258.8 kB / 340 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004579/0.1971, allocations: 164 kB / 340.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000256/0.1974, allocations: 84.48 kB / 340.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1974, allocations: 0 / 340.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of Templates: time 0.02087/0.2183, allocations: 18.48 MB / 358.7 MB, free: 8.945 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.296865276992321]