Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 145.4 kB / 24.89 MB, free: 9.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9791/0.9791, allocations: 173.3 MB / 201.5 MB, free: 9.211 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 268.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.438e-05/1.558e-05, allocations: 2.312 kB / 268.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006613/0.006629, allocations: 8.926 MB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003856/0.01048, allocations: 2.383 MB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006698/0.01115, allocations: 27.88 kB / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005436/0.0117, allocations: 329 kB / 280.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008618/0.01256, allocations: 0.5189 MB / 280.7 MB, free: 9.895 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008106/0.01337, allocations: 0.6553 MB / 281.4 MB, free: 9.238 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.01509, allocations: 2.41 MB / 283.8 MB, free: 6.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007561/0.01585, allocations: 0.7185 MB / 284.5 MB, free: 6.035 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.0169, allocations: 1.314 MB / 285.8 MB, free: 4.719 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006464/0.01754, allocations: 0.6818 MB / 286.5 MB, free: 4.035 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000258/0.0178, allocations: 280 kB / 286.8 MB, free: 3.762 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003557/0.01816, allocations: 347.8 kB / 287.1 MB, free: 3.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002714/0.01843, allocations: 0.5181 MB / 287.6 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005218/0.01895, allocations: 0.69 MB / 288.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.02017, allocations: 1.608 MB / 289.9 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.02017, allocations: 0 / 289.9 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.02017, allocations: 3.938 kB / 289.9 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.02019, allocations: 0 / 289.9 MB, free: 0.5938 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.1078/0.128, allocations: 1.848 MB / 291.8 MB, free: 30.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.128, allocations: 9.922 kB / 291.8 MB, free: 30.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.1284, allocations: 263.5 kB / 292 MB, free: 30.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007501/0.1292, allocations: 0.5021 MB / 292.5 MB, free: 29.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.1293, allocations: 436.9 kB / 293 MB, free: 29.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/0.1295, allocations: 164.5 kB / 293.1 MB, free: 29.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.1309, allocations: 1.293 MB / 294.4 MB, free: 29.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/0.131, allocations: 10.83 kB / 294.4 MB, free: 29.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.858e-05/0.1311, allocations: 64.34 kB / 294.5 MB, free: 29.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.1311, allocations: 37.59 kB / 294.5 MB, free: 29.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009182/0.132, allocations: 0.5196 MB / 295 MB, free: 29.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004508/0.1365, allocations: 3.906 MB / 299 MB, free: 27.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006853/0.1372, allocations: 0.5219 MB / 299.5 MB, free: 27.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/0.1374, allocations: 190.4 kB / 299.7 MB, free: 27.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.1375, allocations: 18.53 kB / 299.7 MB, free: 27.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.138, allocations: 0.6017 MB / 300.3 MB, free: 26.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 2.284e-06/0.138, allocations: 3.828 kB / 300.3 MB, free: 26.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.008797/0.1468, allocations: 4.794 MB / 305.1 MB, free: 25.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.1468, allocations: 299.7 kB / 305.4 MB, free: 24.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.1471, allocations: 0.6164 MB / 306 MB, free: 24.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.609e-05/0.1472, allocations: 53.7 kB / 306 MB, free: 24.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.1473, allocations: 0.615 MB / 306.7 MB, free: 23.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.1475, allocations: 418 kB / 307.1 MB, free: 23.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.1477, allocations: 252.7 kB / 307.3 MB, free: 23.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.655e-05/0.1478, allocations: 409.4 kB / 307.7 MB, free: 22.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.1481, allocations: 238.7 kB / 307.9 MB, free: 22.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00037/0.1484, allocations: 0.7547 MB / 308.7 MB, free: 21.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005991/0.149, allocations: 0.7864 MB / 309.5 MB, free: 20.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.149, allocations: 7.828 kB / 309.5 MB, free: 20.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001004/0.15, allocations: 0.8927 MB / 310.4 MB, free: 19.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1501, allocations: 8 kB / 310.4 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.1501, allocations: 9.188 kB / 310.4 MB, free: 19.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/0.1503, allocations: 152.9 kB / 310.5 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000795/0.1511, allocations: 371.4 kB / 310.9 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.1524, allocations: 3.812 MB / 314.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005358/0.1529, allocations: 143.9 kB / 314.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/0.153, allocations: 43.98 kB / 314.9 MB, free: 15.1 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (167): * Single equations (assignments): 164 * 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.0002227/0.1532, allocations: 198.3 kB / 315.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1533, allocations: 103.8 kB / 315.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.304e-05/0.1534, allocations: 125.7 kB / 315.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1534, allocations: 16 kB / 315.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1534, allocations: 0 / 315.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1534, allocations: 7.969 kB / 315.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.1556, allocations: 2.098 MB / 317.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.1556, allocations: 12.03 kB / 317.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005379/0.1562, allocations: 271.6 kB / 317.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000258/0.1564, allocations: 300.6 kB / 318 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.233e-05/0.1565, allocations: 32 kB / 318 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005393/0.157, allocations: 1.855 MB / 319.9 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.157, allocations: 11.94 kB / 319.9 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009419/0.158, allocations: 1.23 MB / 321.1 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.1582, allocations: 123.3 kB / 321.3 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.264e-05/0.1583, allocations: 47.92 kB / 321.3 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.1586, allocations: 115.9 kB / 321.4 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.1588, allocations: 152.2 kB / 321.6 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.1589, allocations: 35.98 kB / 321.6 MB, free: 8.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000167/0.159, allocations: 280.5 kB / 321.9 MB, free: 7.844 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.159, allocations: 0 / 321.9 MB, free: 7.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005932/0.1596, allocations: 347.9 kB / 322.2 MB, free: 7.504 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (110): * Single equations (assignments): 108 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.1598, allocations: 168 kB / 322.4 MB, free: 7.332 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008854/0.1607, allocations: 1.062 MB / 323.4 MB, free: 6.234 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.721e-05/0.1607, allocations: 16 kB / 323.5 MB, free: 6.219 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.161, allocations: 468.1 kB / 323.9 MB, free: 5.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.1616, allocations: 223.6 kB / 324.1 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.1642, allocations: 2.56 MB / 326.7 MB, free: 2.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.1643, allocations: 256.7 kB / 327 MB, free: 2.551 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003981/0.1647, allocations: 160 kB / 327.1 MB, free: 2.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004512/0.1652, allocations: 253.3 kB / 327.4 MB, free: 2.145 MB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1652, allocations: 0 / 327.4 MB, free: 2.145 MB / 266.7 MB Notification: Performance of Templates: time 0.02174/0.1869, allocations: 19.91 MB / 347.3 MB, free: 14.5 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.075909126549959]