Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.237/2.237, allocations: 230.6 MB / 258.2 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 55.86 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3439, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01437/0.3583, allocations: 8.212 MB / 440.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005996/0.3643, allocations: 2.392 MB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001204/0.3655, allocations: 31.88 kB / 443 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.3667, allocations: 348.9 kB / 443.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.3686, allocations: 0.5114 MB / 443.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002095/0.3707, allocations: 0.6516 MB / 444.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003318/0.374, allocations: 2.376 MB / 446.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.3754, allocations: 0.7334 MB / 447.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.3766, allocations: 0.8569 MB / 448.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001282/0.3778, allocations: 0.9105 MB / 449.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004288/0.3783, allocations: 284 kB / 449.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007299/0.379, allocations: 355.9 kB / 450 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005401/0.3795, allocations: 0.5143 MB / 450.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009185/0.3805, allocations: 0.7976 MB / 451.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004007/0.3845, allocations: 3.439 MB / 454.7 MB, free: 184 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3845, allocations: 0 / 454.7 MB, free: 184 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3845, allocations: 0 / 454.7 MB, free: 184 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.424e-05/0.3845, allocations: 0 / 454.7 MB, free: 184 kB / 350.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.004886/0.3894, allocations: 1.924 MB / 456.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3894, allocations: 12.03 kB / 456.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005355/0.39, allocations: 191.8 kB / 456.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.3918, allocations: 0.7899 MB / 457.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005155/0.3923, allocations: 442.3 kB / 458.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003481/0.3926, allocations: 171.8 kB / 458.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004387/0.397, allocations: 1.879 MB / 460.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.65e-05/0.3971, allocations: 7.953 kB / 460.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000205/0.3973, allocations: 72 kB / 460.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.152e-05/0.3973, allocations: 36 kB / 460.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004438/0.4018, allocations: 1.527 MB / 461.8 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01095/0.4127, allocations: 5.006 MB / 466.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/0.4237, allocations: 0.8918 MB / 467.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.4251, allocations: 489.8 kB / 468.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.672e-05/0.4251, allocations: 13 kB / 468.2 MB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001841/0.427, allocations: 0.8575 MB / 469 MB, free: 1.363 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.397e-06/0.427, allocations: 3.938 kB / 469 MB, free: 1.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.05287/0.4798, allocations: 8.547 MB / 477.6 MB, free: 8.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002135/0.4801, allocations: 299.7 kB / 477.9 MB, free: 8.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.4816, allocations: 0.7892 MB / 478.6 MB, free: 7.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001542/0.4817, allocations: 61.69 kB / 478.7 MB, free: 7.539 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008925/0.4826, allocations: 0.68 MB / 479.4 MB, free: 6.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005968/0.4832, allocations: 440.4 kB / 479.8 MB, free: 6.414 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006445/0.4839, allocations: 239.5 kB / 480.1 MB, free: 6.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002725/0.4841, allocations: 410.7 kB / 480.5 MB, free: 5.762 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00263/0.4868, allocations: 0.7926 MB / 481.2 MB, free: 4.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003325/0.4901, allocations: 1.319 MB / 482.6 MB, free: 3.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004902/0.495, allocations: 1.611 MB / 484.2 MB, free: 1.781 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.495, allocations: 4 kB / 484.2 MB, free: 1.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.006466/0.5015, allocations: 2.041 MB / 486.2 MB, free: 15.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.5015, allocations: 8 kB / 486.2 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.5015, allocations: 4.125 kB / 486.2 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006958/0.5022, allocations: 230.3 kB / 486.5 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002246/0.5044, allocations: 351.5 kB / 486.8 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005272/0.5097, allocations: 4.44 MB / 491.2 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.5115, allocations: 167.8 kB / 491.4 MB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.5117, allocations: 48 kB / 491.5 MB, free: 10.18 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: 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.0009502/0.5127, allocations: 391.4 kB / 491.8 MB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.5129, allocations: 111.4 kB / 491.9 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.5132, allocations: 133.8 kB / 492.1 MB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.5132, allocations: 12 kB / 492.1 MB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.5132, allocations: 4 kB / 492.1 MB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.5133, allocations: 11.97 kB / 492.1 MB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.5234, allocations: 3.827 MB / 495.9 MB, free: 5.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.5234, allocations: 11.94 kB / 495.9 MB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.5249, allocations: 260 kB / 496.2 MB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000648/0.5256, allocations: 281.5 kB / 496.5 MB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.5257, allocations: 43.98 kB / 496.5 MB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/0.528, allocations: 2.067 MB / 498.6 MB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.569e-05/0.528, allocations: 15.94 kB / 498.6 MB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006449/0.5345, allocations: 2.406 MB / 0.4893 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007717/0.5352, allocations: 251.2 kB / 0.4895 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002269/0.5355, allocations: 51.98 kB / 0.4895 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.5368, allocations: 135.9 kB / 0.4897 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004197/0.5372, allocations: 176.2 kB / 0.4898 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/0.5375, allocations: 47.98 kB / 0.4899 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009831/0.5384, allocations: 0.5225 MB / 0.4904 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5384, allocations: 0 / 0.4904 GB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001578/0.54, allocations: 339.9 kB / 0.4907 GB, free: 14.66 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: 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.001778/0.5418, allocations: 455.2 kB / 0.4912 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00565/0.5474, allocations: 1.899 MB / 0.493 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.5475, allocations: 8.125 kB / 0.493 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00302/0.5505, allocations: 1.012 MB / 0.494 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.552, allocations: 188.3 kB / 0.4942 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007833/0.5598, allocations: 3.152 MB / 0.4973 GB, free: 7.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009281/0.5607, allocations: 0.598 MB / 0.4978 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001039/0.5618, allocations: 176 kB / 0.498 GB, free: 7.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005021/0.5623, allocations: 83.42 kB / 0.4981 GB, free: 7.016 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5623, allocations: 0 / 0.4981 GB, free: 7.016 MB / 414.1 MB Notification: Performance of Templates: time 0.04476/0.607, allocations: 20.48 MB / 0.5181 GB, free: 2.746 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.8307450549909845]