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.001308/0.001308, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001459/0.001459, allocations: 209.8 kB / 24.5 MB, free: 4.133 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 1.418/1.418, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.001532/0.001532, allocations: 43.92 kB / 379 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2759, allocations: 53.36 MB / 432.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01237/0.2883, allocations: 9.48 MB / 441.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006536/0.2948, allocations: 2.462 MB / 444.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.2959, allocations: 39.75 kB / 444.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009021/0.2968, allocations: 340.9 kB / 444.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.2981, allocations: 0.5114 MB / 445.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.2993, allocations: 0.6554 MB / 445.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.3018, allocations: 2.368 MB / 448.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.303, allocations: 0.741 MB / 449 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.3042, allocations: 0.8919 MB / 449.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.3053, allocations: 0.8988 MB / 450.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002997/0.3056, allocations: 280 kB / 451.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004661/0.306, allocations: 332 kB / 451.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004517/0.3065, allocations: 0.5104 MB / 451.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008907/0.3074, allocations: 0.9881 MB / 452.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00345/0.3108, allocations: 3.412 MB / 456.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3108, allocations: 0 / 456.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3108, allocations: 0 / 456.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.513e-05/0.3109, allocations: 0 / 456.3 MB, free: 14.93 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.003639/0.3145, allocations: 1.917 MB / 458.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3145, allocations: 12.03 kB / 458.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/0.3149, allocations: 187.8 kB / 458.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.3163, allocations: 0.7885 MB / 459.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005171/0.3168, allocations: 446.3 kB / 459.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002967/0.3171, allocations: 163.9 kB / 459.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003153/0.3202, allocations: 1.675 MB / 461.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.894e-05/0.3203, allocations: 7.953 kB / 461.5 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.3204, allocations: 64 kB / 461.5 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.229e-05/0.3205, allocations: 36 kB / 461.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003502/0.324, allocations: 1.531 MB / 463.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00985/0.3338, allocations: 5.708 MB / 468.8 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.3358, allocations: 0.8865 MB / 469.7 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.3369, allocations: 485.7 kB / 470.2 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.719e-05/0.3369, allocations: 9 kB / 470.2 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001245/0.3382, allocations: 0.6411 MB / 470.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.725e-06/0.3382, allocations: 0 / 470.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03361/0.3718, allocations: 8.523 MB / 479.3 MB, free: 7.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002601/0.3721, allocations: 307.7 kB / 479.6 MB, free: 7.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.3735, allocations: 0.8053 MB / 480.4 MB, free: 6.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.3736, allocations: 53.7 kB / 480.5 MB, free: 6.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007259/0.3743, allocations: 0.68 MB / 481.2 MB, free: 5.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004476/0.3747, allocations: 432.4 kB / 481.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004698/0.3752, allocations: 251.5 kB / 481.8 MB, free: 4.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.3754, allocations: 402.7 kB / 482.2 MB, free: 4.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001895/0.3773, allocations: 0.7887 MB / 483 MB, free: 3.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002211/0.3796, allocations: 1.114 MB / 484.1 MB, free: 2.352 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00369/0.3832, allocations: 1.607 MB / 485.7 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3832, allocations: 0 / 485.7 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004807/0.3881, allocations: 2.034 MB / 487.8 MB, free: 14.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3881, allocations: 8 kB / 487.8 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.3881, allocations: 8 kB / 487.8 MB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005187/0.3886, allocations: 222.4 kB / 488 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.3903, allocations: 343.5 kB / 488.3 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/0.3949, allocations: 4.539 MB / 492.9 MB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.3964, allocations: 167.9 kB / 493 MB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.3965, allocations: 56 kB / 493.1 MB, free: 8.914 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.0007686/0.3972, allocations: 385.3 kB / 493.5 MB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.3974, allocations: 111.3 kB / 493.6 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.3977, allocations: 130.1 kB / 493.7 MB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3977, allocations: 12 kB / 493.7 MB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.3977, allocations: 0 / 493.7 MB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.3978, allocations: 11.97 kB / 493.7 MB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008064/0.4058, allocations: 4.327 MB / 498.1 MB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.4058, allocations: 11.94 kB / 498.1 MB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.407, allocations: 259.6 kB / 498.3 MB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005403/0.4075, allocations: 277.6 kB / 498.6 MB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.748e-05/0.4076, allocations: 39.98 kB / 498.6 MB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.4096, allocations: 2.094 MB / 0.489 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.478e-05/0.4096, allocations: 23.98 kB / 0.489 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004831/0.4144, allocations: 2.393 MB / 0.4914 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006438/0.415, allocations: 251.2 kB / 0.4916 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.4152, allocations: 44 kB / 0.4916 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4162, allocations: 143.8 kB / 0.4918 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003256/0.4166, allocations: 176.2 kB / 0.4919 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.938e-05/0.4166, allocations: 43.98 kB / 0.492 GB, free: 13.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008146/0.4175, allocations: 0.542 MB / 0.4925 GB, free: 13.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4175, allocations: 0 / 0.4925 GB, free: 13.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001202/0.4187, allocations: 336 kB / 0.4928 GB, free: 12.86 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.001452/0.4201, allocations: 433.2 kB / 0.4932 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004249/0.4244, allocations: 1.887 MB / 0.4951 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4244, allocations: 4.5 kB / 0.4951 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/0.4265, allocations: 0.9846 MB / 0.4961 GB, free: 9.645 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/0.4278, allocations: 201.7 kB / 0.4963 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006609/0.4344, allocations: 3.19 MB / 0.4994 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009644/0.4353, allocations: 1.194 MB / 0.5005 GB, free: 4.863 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004622/0.4358, allocations: 91.42 kB / 0.5006 GB, free: 4.773 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4358, allocations: 0 / 0.5006 GB, free: 4.773 MB / 414.1 MB Notification: Performance of Templates: time 0.2725/0.7083, allocations: 36.88 MB / 0.5366 GB, free: 104.2 MB / 446.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 -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: 9.645423548063263]