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.001291/0.001291, allocations: 109.8 kB / 19.17 MB, free: 3.891 MB / 14.72 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.001324/0.001324, allocations: 208.9 kB / 22.13 MB, free: 0.9375 MB / 14.72 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 1.474/1.474, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001882/0.001882, allocations: 63.89 kB / 374.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1204, allocations: 53.32 MB / 427.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2413/0.3618, allocations: 9.446 MB / 437.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004693/0.3665, allocations: 2.438 MB / 439.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3677, allocations: 32.09 kB / 439.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008872/0.3685, allocations: 345.4 kB / 440.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00147/0.37, allocations: 0.5039 MB / 440.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.3713, allocations: 0.6581 MB / 441.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.374, allocations: 2.365 MB / 443.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.3751, allocations: 0.7514 MB / 444.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001423/0.3765, allocations: 0.8671 MB / 445.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.3776, allocations: 0.896 MB / 446.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004452/0.378, allocations: 277.9 kB / 446.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006032/0.3786, allocations: 336.5 kB / 446.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003903/0.379, allocations: 0.5082 MB / 447.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007871/0.3798, allocations: 0.9909 MB / 448.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004077/0.3839, allocations: 3.412 MB / 451.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.3839, allocations: 5.188 kB / 451.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3839, allocations: 0 / 451.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.008e-05/0.384, allocations: 0 / 451.7 MB, free: 15.69 MB / 366.1 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.004603/0.3886, allocations: 1.986 MB / 453.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3886, allocations: 14.16 kB / 453.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004026/0.389, allocations: 193.8 kB / 453.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.3906, allocations: 0.8492 MB / 454.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/0.3909, allocations: 238.1 kB / 454.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.3912, allocations: 163.9 kB / 455.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003453/0.3946, allocations: 1.668 MB / 456.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.419e-05/0.3947, allocations: 14.28 kB / 456.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.3949, allocations: 61.12 kB / 456.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.482e-05/0.3949, allocations: 42.41 kB / 456.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003385/0.3983, allocations: 1.528 MB / 458.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/0.4086, allocations: 5.841 MB / 464.2 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/0.4107, allocations: 0.8864 MB / 465.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.4117, allocations: 476.1 kB / 465.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.962e-05/0.4118, allocations: 15.31 kB / 465.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.4132, allocations: 0.6404 MB / 466.2 MB, free: 5.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.615e-06/0.4132, allocations: 4 kB / 466.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03646/0.4496, allocations: 8.811 MB / 475.1 MB, free: 1.125 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002051/0.4498, allocations: 306.3 kB / 475.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.4512, allocations: 0.8063 MB / 476.2 MB, free: 176 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4514, allocations: 53.7 kB / 476.2 MB, free: 116 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007023/0.4521, allocations: 0.6761 MB / 476.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004508/0.4525, allocations: 436.3 kB / 477.3 MB, free: 15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005521/0.4531, allocations: 251.5 kB / 477.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002468/0.4533, allocations: 406.7 kB / 478 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/0.4553, allocations: 0.7925 MB / 478.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002351/0.4577, allocations: 1.108 MB / 479.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003808/0.4615, allocations: 1.603 MB / 481.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.4615, allocations: 4 kB / 481.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00514/0.4666, allocations: 2.03 MB / 483.5 MB, free: 8.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.4666, allocations: 8 kB / 483.5 MB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.4667, allocations: 8 kB / 483.5 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005414/0.4672, allocations: 229.2 kB / 483.7 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.4689, allocations: 351.5 kB / 484.1 MB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/0.4738, allocations: 4.834 MB / 488.9 MB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.4757, allocations: 171.9 kB / 489.1 MB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.4758, allocations: 44 kB / 489.1 MB, free: 2.531 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,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.0009375/0.4767, allocations: 397.9 kB / 489.5 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.477, allocations: 111.3 kB / 489.6 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000325/0.4773, allocations: 134.1 kB / 489.8 MB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.4773, allocations: 12 kB / 489.8 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/0.4773, allocations: 4 kB / 489.8 MB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.4773, allocations: 7.969 kB / 489.8 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008627/0.486, allocations: 4.342 MB / 494.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.486, allocations: 8 kB / 494.1 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.4872, allocations: 267.6 kB / 494.4 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000578/0.4877, allocations: 282.2 kB / 494.7 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4878, allocations: 35.98 kB / 494.7 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002161/0.49, allocations: 2.201 MB / 496.9 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/0.49, allocations: 15.94 kB / 496.9 MB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005267/0.4953, allocations: 2.401 MB / 499.3 MB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007881/0.4961, allocations: 324.3 kB / 499.6 MB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.4963, allocations: 48 kB / 499.7 MB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4974, allocations: 147.8 kB / 499.8 MB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003842/0.4978, allocations: 168.2 kB / 500 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-05/0.4978, allocations: 47.98 kB / 0.4883 GB, free: 7.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008884/0.4987, allocations: 0.542 MB / 0.4888 GB, free: 6.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4987, allocations: 3.938 kB / 0.4888 GB, free: 6.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001457/0.5002, allocations: 339.9 kB / 0.4892 GB, free: 6.207 MB / 398.1 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: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.001516/0.5017, allocations: 424.4 kB / 0.4896 GB, free: 5.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.5063, allocations: 1.883 MB / 0.4914 GB, free: 3.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.5063, allocations: 8.062 kB / 0.4914 GB, free: 3.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.5086, allocations: 0.9806 MB / 0.4924 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.5101, allocations: 197.7 kB / 0.4926 GB, free: 2.805 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006584/0.5167, allocations: 3.196 MB / 0.4957 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.5177, allocations: 1.19 MB / 0.4969 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005687/0.5183, allocations: 83.44 kB / 0.4969 GB, free: 14.13 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5183, allocations: 0 / 0.4969 GB, free: 14.13 MB / 414.1 MB Notification: Performance of Templates: time 0.04819/0.5664, allocations: 36.86 MB / 0.5329 GB, free: 9.285 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.239474333822727]