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.001728/0.001728, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001896/0.001896, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.542/1.542, allocations: 230.3 MB / 258 MB, free: 8.207 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.00199/0.00199, allocations: 67.89 kB / 378.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2575, allocations: 53.36 MB / 432.2 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01188/0.2694, allocations: 9.471 MB / 441.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004902/0.2743, allocations: 2.461 MB / 444.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007192/0.275, allocations: 39.75 kB / 444.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000847/0.2758, allocations: 340.9 kB / 444.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.277, allocations: 0.5114 MB / 445 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.2782, allocations: 0.6632 MB / 445.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002536/0.2807, allocations: 2.368 MB / 448 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.2819, allocations: 0.7371 MB / 448.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.283, allocations: 0.9035 MB / 449.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.2841, allocations: 0.8988 MB / 450.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000346/0.2845, allocations: 280 kB / 450.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005108/0.285, allocations: 328 kB / 451.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005102/0.2855, allocations: 0.5181 MB / 451.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.2865, allocations: 0.9842 MB / 452.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003615/0.2901, allocations: 3.404 MB / 456 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2901, allocations: 0 / 456 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2901, allocations: 0 / 456 MB, free: 15.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.119e-05/0.2902, allocations: 0 / 456 MB, free: 15.04 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.004157/0.2943, allocations: 1.916 MB / 458 MB, free: 13.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2944, allocations: 12.03 kB / 458 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003563/0.2947, allocations: 191.8 kB / 458.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.2962, allocations: 0.7847 MB / 458.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003125/0.2965, allocations: 240.6 kB / 459.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002636/0.2968, allocations: 163.9 kB / 459.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003524/0.3003, allocations: 1.675 MB / 461 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/0.3004, allocations: 7.953 kB / 461 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.3005, allocations: 60 kB / 461.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.374e-05/0.3005, allocations: 40 kB / 461.1 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003546/0.3041, allocations: 1.527 MB / 462.6 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.3143, allocations: 5.712 MB / 468.4 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002183/0.3165, allocations: 0.8825 MB / 469.2 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.3176, allocations: 485.1 kB / 469.7 MB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.28e-05/0.3177, allocations: 9 kB / 469.7 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001369/0.319, allocations: 0.645 MB / 470.4 MB, free: 320 kB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.555e-06/0.319, allocations: 0 / 470.4 MB, free: 320 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03803/0.3571, allocations: 8.52 MB / 478.9 MB, free: 7.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001906/0.3572, allocations: 299.7 kB / 479.2 MB, free: 7.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.3585, allocations: 0.8013 MB / 480 MB, free: 6.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.3586, allocations: 57.69 kB / 480 MB, free: 6.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006762/0.3593, allocations: 0.6839 MB / 480.7 MB, free: 5.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004188/0.3597, allocations: 424.4 kB / 481.1 MB, free: 5.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005783/0.3603, allocations: 255.5 kB / 481.4 MB, free: 5.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002766/0.3606, allocations: 406.7 kB / 481.8 MB, free: 4.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/0.3627, allocations: 0.7887 MB / 482.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/0.3651, allocations: 1.111 MB / 483.7 MB, free: 2.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/0.369, allocations: 1.607 MB / 485.3 MB, free: 1.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.369, allocations: 4 kB / 485.3 MB, free: 1.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005329/0.3744, allocations: 2.037 MB / 487.3 MB, free: 14.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3744, allocations: 14.5 kB / 487.3 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.3744, allocations: 12 kB / 487.4 MB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005439/0.375, allocations: 210.4 kB / 487.6 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/0.3767, allocations: 359.5 kB / 487.9 MB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004793/0.3815, allocations: 4.536 MB / 492.4 MB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.3832, allocations: 163.9 kB / 492.6 MB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.3833, allocations: 51.98 kB / 492.7 MB, free: 9.281 MB / 398.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.0007812/0.3841, allocations: 395.1 kB / 493 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.3843, allocations: 111.3 kB / 493.2 MB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003023/0.3846, allocations: 134.1 kB / 493.3 MB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.3846, allocations: 12 kB / 493.3 MB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3846, allocations: 0 / 493.3 MB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.3847, allocations: 7.922 kB / 493.3 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00883/0.3935, allocations: 4.311 MB / 497.6 MB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.3935, allocations: 12 kB / 497.6 MB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.3948, allocations: 264.4 kB / 497.9 MB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005801/0.3954, allocations: 281.6 kB / 498.2 MB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.442e-05/0.3955, allocations: 35.98 kB / 498.2 MB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/0.3976, allocations: 2.098 MB / 0.4886 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/0.3976, allocations: 11.94 kB / 0.4886 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00536/0.403, allocations: 2.397 MB / 0.4909 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006269/0.4036, allocations: 247.2 kB / 0.4912 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/0.4038, allocations: 48 kB / 0.4912 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.405, allocations: 143.8 kB / 0.4913 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/0.4053, allocations: 176.2 kB / 0.4915 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.781e-05/0.4054, allocations: 40 kB / 0.4915 GB, free: 14.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008344/0.4062, allocations: 0.542 MB / 0.4921 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4062, allocations: 0 / 0.4921 GB, free: 13.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001462/0.4077, allocations: 340 kB / 0.4924 GB, free: 13.23 MB / 414.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.001449/0.4091, allocations: 439.4 kB / 0.4928 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004482/0.4136, allocations: 1.89 MB / 0.4947 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.4136, allocations: 4 kB / 0.4947 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002349/0.416, allocations: 1.002 MB / 0.4956 GB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.4172, allocations: 209 kB / 0.4958 GB, free: 9.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006053/0.4232, allocations: 3.137 MB / 0.4989 GB, free: 6.469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009506/0.4242, allocations: 1.19 MB / 0.5001 GB, free: 5.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000787/0.425, allocations: 172.4 kB / 0.5002 GB, free: 5.078 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004021/0.4254, allocations: 83.42 kB / 0.5003 GB, free: 4.996 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4254, allocations: 0 / 0.5003 GB, free: 4.996 MB / 414.1 MB Notification: Performance of Templates: time 0.0356/0.461, allocations: 20.31 MB / 0.5201 GB, free: 0.7852 MB / 430.1 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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.353635443374515]