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.001874/0.001874, allocations: 88.62 kB / 20.96 MB, free: 3.469 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.00238/0.00238, allocations: 149.4 kB / 24.26 MB, free: 176 kB / 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 1.586/1.586, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.954e-06/1.954e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.558e-05/2.753e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01222/0.01225, allocations: 8.109 MB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005412/0.01766, allocations: 2.263 MB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001576/0.01924, allocations: 31.88 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.0206, allocations: 333 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002118/0.02272, allocations: 0.5228 MB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.02435, allocations: 0.6554 MB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003717/0.02807, allocations: 2.418 MB / 281.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00134/0.02941, allocations: 0.6982 MB / 282.4 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002061/0.03147, allocations: 1.306 MB / 283.7 MB, free: 6.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.03248, allocations: 0.67 MB / 284.3 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003673/0.03284, allocations: 280 kB / 284.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005842/0.03343, allocations: 339.9 kB / 284.9 MB, free: 4.973 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005184/0.03395, allocations: 0.5142 MB / 285.5 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008359/0.03478, allocations: 0.6822 MB / 286.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004559/0.03934, allocations: 3.494 MB / 289.6 MB, free: 276 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.03935, allocations: 4 kB / 289.6 MB, free: 272 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.03935, allocations: 0 / 289.6 MB, free: 272 kB / 266.7 MB Notification: Performance of Transformations before backend: time 5.68e-05/0.0394, allocations: 0 / 289.6 MB, free: 272 kB / 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.1221/0.1615, allocations: 1.874 MB / 291.5 MB, free: 32.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1616, allocations: 9.656 kB / 291.5 MB, free: 32.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006183/0.1622, allocations: 320.9 kB / 291.8 MB, free: 31.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.1635, allocations: 0.7948 MB / 292.6 MB, free: 31.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003025/0.1638, allocations: 447.5 kB / 293.1 MB, free: 31.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.164, allocations: 162 kB / 293.2 MB, free: 30.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003111/0.1671, allocations: 1.888 MB / 295.1 MB, free: 30.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/0.1671, allocations: 10.58 kB / 295.1 MB, free: 30.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/0.1673, allocations: 69.36 kB / 295.2 MB, free: 29.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/0.1673, allocations: 39.81 kB / 295.2 MB, free: 29.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.1705, allocations: 1.563 MB / 296.8 MB, free: 29.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008267/0.1788, allocations: 5.104 MB / 301.9 MB, free: 26.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001943/0.1807, allocations: 0.8992 MB / 302.8 MB, free: 25.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009559/0.1817, allocations: 0.5022 MB / 303.3 MB, free: 25.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-05/0.1818, allocations: 14.75 kB / 303.3 MB, free: 25.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.1829, allocations: 0.8656 MB / 304.2 MB, free: 24.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 2.584e-06/0.1829, allocations: 2.625 kB / 304.2 MB, free: 24.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=121): time 0.03086/0.2138, allocations: 8.735 MB / 312.9 MB, free: 16.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/0.2139, allocations: 299.7 kB / 313.2 MB, free: 16.33 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008261/0.2147, allocations: 0.7736 MB / 314 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-05/0.2148, allocations: 57.7 kB / 314 MB, free: 15.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.2151, allocations: 0.6809 MB / 314.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000231/0.2154, allocations: 424.4 kB / 315.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004147/0.2158, allocations: 247.5 kB / 315.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.924e-05/0.2159, allocations: 402.7 kB / 315.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.2175, allocations: 0.8121 MB / 316.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.2193, allocations: 1.343 MB / 317.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003071/0.2224, allocations: 1.659 MB / 319.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.2224, allocations: 4 kB / 319.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004232/0.2267, allocations: 2.135 MB / 321.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.2267, allocations: 8.219 kB / 321.7 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.2267, allocations: 12 kB / 321.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005171/0.2272, allocations: 191.3 kB / 321.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.2287, allocations: 355.5 kB / 322.3 MB, free: 6.945 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002831/0.2316, allocations: 4.424 MB / 326.7 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.2331, allocations: 171.9 kB / 326.9 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.2332, allocations: 44 kB / 326.9 MB, free: 2.004 MB / 266.7 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 (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.0006794/0.2339, allocations: 396.8 kB / 327.3 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002473/0.2341, allocations: 147.3 kB / 327.4 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002356/0.2344, allocations: 129.6 kB / 327.6 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.2344, allocations: 12 kB / 327.6 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.2344, allocations: 0 / 327.6 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.2344, allocations: 3.984 kB / 327.6 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008149/0.2425, allocations: 3.919 MB / 331.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/0.2426, allocations: 9 kB / 331.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.2438, allocations: 263.6 kB / 331.8 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007426/0.2446, allocations: 381.5 kB / 332.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-05/0.2447, allocations: 32 kB / 332.2 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.2472, allocations: 2.152 MB / 334.3 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-05/0.2472, allocations: 13.11 kB / 334.3 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005911/0.2532, allocations: 2.534 MB / 336.9 MB, free: 7.629 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/0.2539, allocations: 251.2 kB / 337.1 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.254, allocations: 47.98 kB / 337.2 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.2552, allocations: 135.9 kB / 337.3 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004003/0.2556, allocations: 180.2 kB / 337.5 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.2557, allocations: 47.98 kB / 337.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008385/0.2565, allocations: 0.5147 MB / 338 MB, free: 6.469 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2565, allocations: 0 / 338 MB, free: 6.469 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001318/0.2578, allocations: 347.9 kB / 338.4 MB, free: 6.129 MB / 282.7 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003663/0.2582, allocations: 183 kB / 338.5 MB, free: 5.941 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004793/0.263, allocations: 1.937 MB / 340.5 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.263, allocations: 0 / 340.5 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002829/0.2658, allocations: 1.04 MB / 341.5 MB, free: 2.922 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.2672, allocations: 222.2 kB / 341.7 MB, free: 2.719 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006759/0.274, allocations: 2.97 MB / 344.7 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008415/0.2748, allocations: 0.5941 MB / 345.3 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009399/0.2757, allocations: 172 kB / 345.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004335/0.2762, allocations: 84.44 kB / 345.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of SimCode: time 8.52e-07/0.2762, allocations: 0 / 345.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of Templates: time 0.03598/0.3122, allocations: 18.14 MB / 363.7 MB, free: 12.8 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.338078120024875]