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.001028/0.001028, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001017/0.001017, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.9463/0.9463, allocations: 177 MB / 204.8 MB, free: 5.59 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.583e-06/1.583e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.558e-05/1.716e-05, allocations: 2.312 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007968/0.007985, allocations: 9.289 MB / 282.2 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004407/0.01239, allocations: 2.43 MB / 284.6 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008716/0.01326, allocations: 35.81 kB / 284.7 MB, free: 5.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006897/0.01395, allocations: 344.9 kB / 285 MB, free: 5.281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009659/0.01492, allocations: 0.5305 MB / 285.5 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008249/0.01574, allocations: 0.6631 MB / 286.2 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.01751, allocations: 2.433 MB / 288.6 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008327/0.01835, allocations: 0.7022 MB / 289.3 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1241/0.1425, allocations: 1.317 MB / 290.7 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.1439, allocations: 0.6969 MB / 291.4 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006075/0.1445, allocations: 281.2 kB / 291.6 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008424/0.1454, allocations: 346.2 kB / 292 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004265/0.1458, allocations: 0.5248 MB / 292.5 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.1471, allocations: 0.6959 MB / 293.2 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002476/0.1496, allocations: 1.641 MB / 294.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1496, allocations: 2.812 kB / 294.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1496, allocations: 0 / 294.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.306e-05/0.1497, allocations: 0.8438 kB / 294.8 MB, free: 16.5 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.003181/0.1529, allocations: 2.004 MB / 296.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1529, allocations: 15.11 kB / 296.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000481/0.1534, allocations: 318.8 kB / 297.2 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.1544, allocations: 0.7882 MB / 297.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.1547, allocations: 442.2 kB / 298.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/0.1549, allocations: 163.4 kB / 298.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.1569, allocations: 1.357 MB / 299.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.101e-05/0.1569, allocations: 7.359 kB / 299.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.157, allocations: 66.64 kB / 300 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.665e-05/0.1571, allocations: 40.09 kB / 300 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.1586, allocations: 0.7164 MB / 300.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005272/0.1638, allocations: 4.811 MB / 305.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009347/0.1648, allocations: 0.5754 MB / 306.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.1651, allocations: 244.8 kB / 306.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.712e-05/0.1652, allocations: 16.53 kB / 306.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005334/0.1657, allocations: 0.6539 MB / 307 MB, free: 10.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 1.974e-06/0.1657, allocations: 2.375 kB / 307 MB, free: 10.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.00822/0.1739, allocations: 4.792 MB / 311.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.297e-05/0.174, allocations: 308 kB / 312.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006081/0.1746, allocations: 0.7032 MB / 312.8 MB, free: 7.566 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.867e-05/0.1747, allocations: 53.7 kB / 312.9 MB, free: 7.508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.175, allocations: 0.7239 MB / 313.6 MB, free: 6.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.1752, allocations: 436.8 kB / 314 MB, free: 6.355 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/0.1755, allocations: 251.9 kB / 314.3 MB, free: 6.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1756, allocations: 0.582 MB / 314.8 MB, free: 5.512 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.1761, allocations: 348.4 kB / 315.2 MB, free: 5.172 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006922/0.1768, allocations: 0.9588 MB / 316.1 MB, free: 4.008 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.1778, allocations: 0.9527 MB / 317.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.1778, allocations: 4 kB / 317.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.001488/0.1793, allocations: 1.254 MB / 318.4 MB, free: 1.723 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1794, allocations: 8 kB / 318.4 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1794, allocations: 5.969 kB / 318.4 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/0.1797, allocations: 190.7 kB / 318.6 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/0.1805, allocations: 334.6 kB / 318.9 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/0.1829, allocations: 5.662 MB / 324.5 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.1835, allocations: 144 kB / 324.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.638e-05/0.1836, allocations: 48 kB / 324.7 MB, free: 11.02 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.0003269/0.1839, allocations: 252.5 kB / 325 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.1841, allocations: 147.3 kB / 325.1 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.1842, allocations: 125.8 kB / 325.2 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.1843, allocations: 16 kB / 325.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.1843, allocations: 3.938 kB / 325.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.1843, allocations: 8.109 kB / 325.3 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.1878, allocations: 2.912 MB / 328.2 MB, free: 7.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.1878, allocations: 12 kB / 328.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005595/0.1884, allocations: 242.2 kB / 328.4 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/0.1887, allocations: 235.2 kB / 328.7 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.986e-05/0.1888, allocations: 39.98 kB / 328.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.1899, allocations: 2.659 MB / 331.4 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.899e-06/0.19, allocations: 19.47 kB / 331.4 MB, free: 4.113 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.1917, allocations: 1.569 MB / 333 MB, free: 2.367 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.192, allocations: 251.1 kB / 333.2 MB, free: 2.121 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.1921, allocations: 51.98 kB / 333.2 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.1926, allocations: 111.9 kB / 333.4 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.1928, allocations: 155.1 kB / 333.5 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.992e-05/0.1928, allocations: 47.17 kB / 333.6 MB, free: 1.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003743/0.1932, allocations: 450.9 kB / 334 MB, free: 1.336 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1932, allocations: 0 / 334 MB, free: 1.336 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00081/0.194, allocations: 344 kB / 334.3 MB, free: 1 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.0008894/0.1949, allocations: 390.1 kB / 334.7 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.1965, allocations: 1.39 MB / 336.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.1965, allocations: 192 / 336.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005969/0.1971, allocations: 0.5484 MB / 336.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007662/0.1979, allocations: 225.1 kB / 336.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.2016, allocations: 2.84 MB / 339.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.2019, allocations: 261.4 kB / 340 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004582/0.2023, allocations: 164 kB / 340.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.2026, allocations: 84.48 kB / 340.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2026, allocations: 0 / 340.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of Templates: time 0.02162/0.2242, allocations: 18.48 MB / 358.7 MB, free: 8.871 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.2962089548818767]