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.001498/0.001498, allocations: 124.3 kB / 17.79 MB, free: 5.227 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.001602/0.001602, allocations: 203.3 kB / 20.74 MB, free: 2.281 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.577/1.577, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001585/0.001585, allocations: 47.92 kB / 373.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1064, allocations: 53.32 MB / 426.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2088/0.3152, allocations: 9.434 MB / 436.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004918/0.3201, allocations: 2.439 MB / 438.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.3214, allocations: 40.44 kB / 438.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000967/0.3224, allocations: 346.2 kB / 439.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001522/0.3239, allocations: 0.5047 MB / 439.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.3251, allocations: 0.6564 MB / 440.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002595/0.3277, allocations: 2.364 MB / 442.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.3289, allocations: 0.7484 MB / 443.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001539/0.3304, allocations: 0.8912 MB / 444.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.3315, allocations: 0.8963 MB / 445.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004454/0.3319, allocations: 277.8 kB / 445.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005855/0.3325, allocations: 335.9 kB / 445.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004231/0.3329, allocations: 0.5085 MB / 446.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008447/0.3338, allocations: 0.9896 MB / 447.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004304/0.3381, allocations: 3.404 MB / 450.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3381, allocations: 2.125 kB / 450.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3381, allocations: 0 / 450.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.494e-05/0.3382, allocations: 0 / 450.6 MB, free: 15.44 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.004907/0.3431, allocations: 2 MB / 452.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3431, allocations: 9.281 kB / 452.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004092/0.3435, allocations: 188.9 kB / 452.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/0.3451, allocations: 0.8524 MB / 453.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000352/0.3455, allocations: 245 kB / 453.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002999/0.3458, allocations: 161.4 kB / 454.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00348/0.3493, allocations: 1.666 MB / 455.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.338e-05/0.3493, allocations: 10.69 kB / 455.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001785/0.3495, allocations: 69.59 kB / 455.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-05/0.3495, allocations: 37.12 kB / 455.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003543/0.3531, allocations: 1.528 MB / 457.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.3634, allocations: 5.842 MB / 463.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.3656, allocations: 0.8824 MB / 464.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001097/0.3666, allocations: 476.6 kB / 464.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.118e-05/0.3667, allocations: 10.5 kB / 464.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001385/0.3681, allocations: 0.6437 MB / 465.2 MB, free: 5.605 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.805e-06/0.3681, allocations: 4 kB / 465.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03826/0.4064, allocations: 8.824 MB / 474 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002127/0.4066, allocations: 304.9 kB / 474.3 MB, free: 488 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.4081, allocations: 0.8039 MB / 475.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001871/0.4083, allocations: 53.7 kB / 475.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007945/0.409, allocations: 0.6878 MB / 475.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005348/0.4096, allocations: 424.3 kB / 476.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005676/0.4102, allocations: 251.5 kB / 476.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002843/0.4104, allocations: 406.7 kB / 476.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/0.4126, allocations: 0.7848 MB / 477.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002588/0.4152, allocations: 1.111 MB / 478.8 MB, free: 11.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004095/0.4193, allocations: 1.599 MB / 480.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.4193, allocations: 6.938 kB / 480.4 MB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005553/0.4249, allocations: 2.038 MB / 482.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.4249, allocations: 8 kB / 482.5 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.4249, allocations: 8 kB / 482.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005369/0.4255, allocations: 226 kB / 482.7 MB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/0.4273, allocations: 351.5 kB / 483.1 MB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004909/0.4322, allocations: 4.831 MB / 487.9 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.4341, allocations: 167.9 kB / 488.1 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001606/0.4343, allocations: 52 kB / 488.1 MB, free: 2.152 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.0009172/0.4352, allocations: 402.2 kB / 488.5 MB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/0.4355, allocations: 111.3 kB / 488.6 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003348/0.4358, allocations: 130.1 kB / 488.7 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.4358, allocations: 16 kB / 488.8 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-05/0.4358, allocations: 7.984 kB / 488.8 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.4359, allocations: 7.984 kB / 488.8 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00912/0.445, allocations: 4.336 MB / 493.1 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/0.445, allocations: 12 kB / 493.1 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.4462, allocations: 259.6 kB / 493.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006002/0.4468, allocations: 277.8 kB / 493.6 MB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.4469, allocations: 43.98 kB / 493.7 MB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.4491, allocations: 2.193 MB / 495.9 MB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/0.4491, allocations: 15.92 kB / 495.9 MB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005431/0.4545, allocations: 2.403 MB / 498.3 MB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008611/0.4554, allocations: 328.3 kB / 498.6 MB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003493/0.4557, allocations: 40 kB / 498.7 MB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.4571, allocations: 151.8 kB / 498.8 MB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004026/0.4575, allocations: 168.2 kB / 499 MB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.4576, allocations: 47.98 kB / 499 MB, free: 6.703 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001041/0.4587, allocations: 0.5381 MB / 499.6 MB, free: 6.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4587, allocations: 3.938 kB / 499.6 MB, free: 6.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001614/0.4603, allocations: 343.9 kB / 499.9 MB, free: 5.828 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.001589/0.4619, allocations: 433.8 kB / 0.4886 GB, free: 5.535 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004894/0.4668, allocations: 1.883 MB / 0.4904 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.4668, allocations: 4.062 kB / 0.4904 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.4693, allocations: 1.004 MB / 0.4914 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.4709, allocations: 203 kB / 0.4916 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007107/0.4781, allocations: 3.141 MB / 0.4947 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.4792, allocations: 1.186 MB / 0.4958 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009312/0.4801, allocations: 168.4 kB / 0.496 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.4806, allocations: 79.44 kB / 0.4961 GB, free: 13.64 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4806, allocations: 0 / 0.4961 GB, free: 13.64 MB / 414.1 MB Notification: Performance of Templates: time 0.04013/0.5207, allocations: 19.42 MB / 0.515 GB, free: 10.33 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 -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/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_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: 5.546320766210556]