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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 76.06 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 143.7 kB / 24.98 MB, free: 9.301 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9369/0.9369, allocations: 173.4 MB / 201.5 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] 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=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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.928e-05/3.074e-05, allocations: 10.25 kB / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01994/0.01997, allocations: 9.133 MB / 277.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.03065, allocations: 2.271 MB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.03171, allocations: 31.88 kB / 279.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007874/0.0325, allocations: 321 kB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.03367, allocations: 0.5267 MB / 280.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.03482, allocations: 0.6593 MB / 281 MB, free: 9.695 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001672/0.03649, allocations: 2.406 MB / 283.4 MB, free: 7.281 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/0.0375, allocations: 0.7022 MB / 284.1 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.03916, allocations: 1.31 MB / 285.4 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007989/0.03995, allocations: 0.6856 MB / 286.1 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002851/0.04024, allocations: 280 kB / 286.4 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004476/0.04069, allocations: 339.9 kB / 286.7 MB, free: 3.922 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003477/0.04104, allocations: 0.518 MB / 287.3 MB, free: 3.402 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005878/0.04162, allocations: 0.6783 MB / 287.9 MB, free: 2.723 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.04325, allocations: 1.62 MB / 289.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.04326, allocations: 0 / 289.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.04326, allocations: 0 / 289.6 MB, free: 1.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.04328, allocations: 0 / 289.6 MB, free: 1.098 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.1109/0.1541, allocations: 1.974 MB / 291.5 MB, free: 33.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1542, allocations: 9.359 kB / 291.5 MB, free: 33.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004416/0.1546, allocations: 321.3 kB / 291.9 MB, free: 33.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009446/0.1556, allocations: 0.7789 MB / 292.6 MB, free: 32.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002185/0.1558, allocations: 442.6 kB / 293.1 MB, free: 32.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001738/0.156, allocations: 162.6 kB / 293.2 MB, free: 32.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.1578, allocations: 1.378 MB / 294.6 MB, free: 31.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.318e-05/0.1578, allocations: 9.297 kB / 294.6 MB, free: 31.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.955e-05/0.1579, allocations: 61.03 kB / 294.7 MB, free: 31.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.1579, allocations: 43.53 kB / 294.7 MB, free: 31.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001443/0.1594, allocations: 0.7669 MB / 295.5 MB, free: 31.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005034/0.1644, allocations: 4.837 MB / 300.3 MB, free: 28.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009583/0.1654, allocations: 0.5801 MB / 300.9 MB, free: 28.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.1658, allocations: 287.7 kB / 301.2 MB, free: 28.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.167e-05/0.1658, allocations: 16.89 kB / 301.2 MB, free: 28.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005854/0.1664, allocations: 0.6731 MB / 301.9 MB, free: 27.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 2.415e-06/0.1664, allocations: 0 / 301.9 MB, free: 27.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=121): time 0.009116/0.1755, allocations: 4.986 MB / 306.9 MB, free: 24.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.1756, allocations: 299.7 kB / 307.1 MB, free: 24.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005375/0.1761, allocations: 0.7023 MB / 307.8 MB, free: 23.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/0.1762, allocations: 53.7 kB / 307.9 MB, free: 23.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.1764, allocations: 0.7337 MB / 308.6 MB, free: 23.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.1766, allocations: 426.8 kB / 309.1 MB, free: 22.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002664/0.1769, allocations: 245.2 kB / 309.3 MB, free: 22.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.777e-05/0.177, allocations: 0.5742 MB / 309.9 MB, free: 21.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/0.1775, allocations: 383.8 kB / 310.2 MB, free: 21.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000681/0.1782, allocations: 0.9825 MB / 311.2 MB, free: 20.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.1793, allocations: 1.006 MB / 312.2 MB, free: 19.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1793, allocations: 8 kB / 312.2 MB, free: 19.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.001648/0.1809, allocations: 1.307 MB / 313.5 MB, free: 17.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1809, allocations: 8.625 kB / 313.6 MB, free: 17.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.1809, allocations: 8 kB / 313.6 MB, free: 17.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003263/0.1813, allocations: 164.7 kB / 313.7 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000797/0.1821, allocations: 335.5 kB / 314 MB, free: 17.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.1839, allocations: 5.653 MB / 319.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007659/0.1847, allocations: 140 kB / 319.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.1847, allocations: 52 kB / 319.9 MB, free: 11.1 MB / 266.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 (169): * Single equations (assignments): 166 * 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.0003748/0.1851, allocations: 257.8 kB / 320.1 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.1852, allocations: 147.3 kB / 320.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.1853, allocations: 129.6 kB / 320.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.1854, allocations: 12 kB / 320.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.1854, allocations: 0 / 320.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1854, allocations: 3.984 kB / 320.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003223/0.1886, allocations: 3.003 MB / 323.4 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.1886, allocations: 8 kB / 323.4 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000528/0.1891, allocations: 248.2 kB / 323.7 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003322/0.1895, allocations: 334.8 kB / 324 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.134e-05/0.1895, allocations: 35.98 kB / 324 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007588/0.1903, allocations: 2.759 MB / 326.8 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.1903, allocations: 13.11 kB / 326.8 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.1919, allocations: 1.701 MB / 328.5 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/0.1922, allocations: 250.9 kB / 328.8 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.1923, allocations: 47.98 kB / 328.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004551/0.1927, allocations: 115.9 kB / 328.9 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.1929, allocations: 156.2 kB / 329.1 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.193, allocations: 40 kB / 329.1 MB, free: 1.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003134/0.1933, allocations: 454.9 kB / 329.6 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1933, allocations: 4 kB / 329.6 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007661/0.194, allocations: 344 kB / 329.9 MB, free: 0.5312 MB / 266.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002232/0.1943, allocations: 188.4 kB / 330.1 MB, free: 344 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.1959, allocations: 1.431 MB / 331.5 MB, free: 14.86 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.1959, allocations: 4 kB / 331.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006304/0.1965, allocations: 0.5724 MB / 332.1 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007118/0.1972, allocations: 220.4 kB / 332.3 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.2011, allocations: 2.81 MB / 335.1 MB, free: 11.03 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.2013, allocations: 257.4 kB / 335.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004852/0.2018, allocations: 156 kB / 335.5 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006123/0.2024, allocations: 84.48 kB / 335.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of SimCode: time 1.483e-06/0.2024, allocations: 0 / 335.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of Templates: time 0.02156/0.224, allocations: 18.21 MB / 353.8 MB, free: 8.566 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] 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","",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.2644224017858505]