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.001426/0.001426, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001583/0.001583, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.8716/0.8716, allocations: 173.4 MB / 201.1 MB, free: 9.316 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 2.484e-06/2.484e-06, allocations: 4 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.021e-05/2.269e-05, allocations: 2.312 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01834/0.01836, allocations: 9.172 MB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003675/0.02203, allocations: 2.282 MB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005759/0.02261, allocations: 27.88 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000567/0.02318, allocations: 329 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008331/0.02401, allocations: 0.5227 MB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.02515, allocations: 0.6593 MB / 281 MB, free: 9.352 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.02661, allocations: 2.41 MB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007483/0.02736, allocations: 0.6983 MB / 284.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008551/0.02821, allocations: 1.318 MB / 285.4 MB, free: 4.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.02875, allocations: 0.6779 MB / 286.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.02895, allocations: 276 kB / 286.4 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003319/0.02928, allocations: 339.9 kB / 286.7 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002871/0.02957, allocations: 0.5181 MB / 287.2 MB, free: 3.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004214/0.02999, allocations: 0.6861 MB / 287.9 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.03145, allocations: 1.616 MB / 289.5 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.03145, allocations: 0 / 289.5 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.03145, allocations: 0 / 289.5 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.03146, allocations: 0 / 289.5 MB, free: 0.7539 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.1042/0.1356, allocations: 1.965 MB / 291.5 MB, free: 30.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.1357, allocations: 9.406 kB / 291.5 MB, free: 30.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004591/0.1361, allocations: 325.1 kB / 291.8 MB, free: 30.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009807/0.1371, allocations: 0.7856 MB / 292.6 MB, free: 29.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.1373, allocations: 437.7 kB / 293 MB, free: 29.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/0.1375, allocations: 166.3 kB / 293.2 MB, free: 29.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.1397, allocations: 1.38 MB / 294.6 MB, free: 29.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.1397, allocations: 3.891 kB / 294.6 MB, free: 29.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.1398, allocations: 72.09 kB / 294.6 MB, free: 29.08 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-05/0.1398, allocations: 40.34 kB / 294.7 MB, free: 29.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.1416, allocations: 0.7604 MB / 295.4 MB, free: 28.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005844/0.1474, allocations: 4.846 MB / 300.3 MB, free: 26.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009768/0.1484, allocations: 0.588 MB / 300.9 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003432/0.1487, allocations: 270 kB / 301.1 MB, free: 25.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.1488, allocations: 15.59 kB / 301.1 MB, free: 25.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004974/0.1493, allocations: 0.6663 MB / 301.8 MB, free: 25.3 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 1.804e-06/0.1493, allocations: 0.625 kB / 301.8 MB, free: 25.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.007863/0.1571, allocations: 4.93 MB / 306.7 MB, free: 23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.1572, allocations: 295.7 kB / 307 MB, free: 22.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000468/0.1576, allocations: 0.7139 MB / 307.7 MB, free: 21.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.575e-05/0.1577, allocations: 53.7 kB / 307.8 MB, free: 21.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.1579, allocations: 0.735 MB / 308.5 MB, free: 21.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1581, allocations: 412.4 kB / 308.9 MB, free: 20.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.1584, allocations: 249.2 kB / 309.2 MB, free: 20.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.664e-05/0.1585, allocations: 0.5703 MB / 309.8 MB, free: 19.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/0.159, allocations: 375.8 kB / 310.1 MB, free: 19.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006344/0.1596, allocations: 0.9951 MB / 311.1 MB, free: 18.31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009495/0.1605, allocations: 1.013 MB / 312.1 MB, free: 17.17 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.1606, allocations: 4 kB / 312.1 MB, free: 17.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001442/0.162, allocations: 1.308 MB / 313.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.162, allocations: 8 kB / 313.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.162, allocations: 4 kB / 313.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003236/0.1623, allocations: 160 kB / 313.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007558/0.1631, allocations: 335.5 kB / 313.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.1647, allocations: 5.659 MB / 319.6 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005961/0.1653, allocations: 143.9 kB / 319.7 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-05/0.1654, allocations: 51.98 kB / 319.8 MB, free: 9.125 MB / 266.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 (167): * Single equations (assignments): 164 * 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.0002635/0.1656, allocations: 242.2 kB / 320 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.1658, allocations: 147.3 kB / 320.2 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.435e-05/0.1659, allocations: 129.7 kB / 320.3 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1659, allocations: 16 kB / 320.3 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1659, allocations: 0 / 320.3 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1659, allocations: 3.984 kB / 320.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.1687, allocations: 2.932 MB / 323.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1687, allocations: 16.03 kB / 323.3 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005163/0.1692, allocations: 238.3 kB / 323.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002937/0.1695, allocations: 331.1 kB / 323.8 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/0.1696, allocations: 35.98 kB / 323.9 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006929/0.1702, allocations: 2.761 MB / 326.6 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.1702, allocations: 13.11 kB / 326.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.1717, allocations: 1.662 MB / 328.3 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.172, allocations: 251.1 kB / 328.5 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.726e-05/0.1721, allocations: 40 kB / 328.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.1725, allocations: 119.6 kB / 328.7 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.1727, allocations: 160.2 kB / 328.8 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.923e-05/0.1728, allocations: 43.98 kB / 328.9 MB, free: 15.47 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003451/0.1731, allocations: 446.9 kB / 329.3 MB, free: 15.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1731, allocations: 0 / 329.3 MB, free: 15.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006762/0.1738, allocations: 344 kB / 329.7 MB, free: 14.7 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002201/0.174, allocations: 182.5 kB / 329.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.1755, allocations: 1.431 MB / 331.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.1755, allocations: 4 kB / 331.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.1761, allocations: 0.5606 MB / 331.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.1767, allocations: 209.5 kB / 332 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.1799, allocations: 2.788 MB / 334.8 MB, free: 9.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.1801, allocations: 256.6 kB / 335.1 MB, free: 9 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004118/0.1805, allocations: 155.9 kB / 335.2 MB, free: 8.844 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.1808, allocations: 76.5 kB / 335.3 MB, free: 8.766 MB / 282.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1808, allocations: 0 / 335.3 MB, free: 8.766 MB / 282.7 MB Notification: Performance of Templates: time 0.02089/0.2016, allocations: 19.04 MB / 354.3 MB, free: 6.008 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.0877744159661233]