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.0008248/0.0008248, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.0008747/0.0008747, allocations: 154.2 kB / 24.81 MB, free: 8.945 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.9414/0.9414, allocations: 173.4 MB / 201.4 MB, free: 9.203 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.403e-06/1.403e-06, allocations: 0 / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.747e-05/2.888e-05, allocations: 6.25 kB / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007775/0.007804, allocations: 8.872 MB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004654/0.01246, allocations: 2.271 MB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.01352, allocations: 31.88 kB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006272/0.01415, allocations: 329 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.01534, allocations: 0.515 MB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000989/0.01633, allocations: 0.667 MB / 281.1 MB, free: 9.426 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001728/0.01806, allocations: 2.41 MB / 283.5 MB, free: 7.008 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000768/0.01883, allocations: 0.6944 MB / 284.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009669/0.0198, allocations: 1.31 MB / 285.5 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005358/0.02033, allocations: 0.6895 MB / 286.2 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.02053, allocations: 276 kB / 286.5 MB, free: 3.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.0209, allocations: 347.8 kB / 286.8 MB, free: 3.648 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.02117, allocations: 0.5142 MB / 287.3 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004134/0.02158, allocations: 0.6861 MB / 288 MB, free: 2.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.02291, allocations: 1.612 MB / 289.6 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.02291, allocations: 4 kB / 289.6 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.02291, allocations: 0 / 289.6 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.02293, allocations: 0 / 289.6 MB, free: 0.8242 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.1116/0.1346, allocations: 1.982 MB / 291.6 MB, free: 29.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1346, allocations: 11.47 kB / 291.6 MB, free: 29.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004322/0.135, allocations: 318.9 kB / 291.9 MB, free: 29.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008584/0.1359, allocations: 0.7746 MB / 292.7 MB, free: 29.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/0.1361, allocations: 440.4 kB / 293.1 MB, free: 29.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.1363, allocations: 162.2 kB / 293.3 MB, free: 29.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1378, allocations: 1.254 MB / 294.6 MB, free: 28.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.856e-05/0.1379, allocations: 9.375 kB / 294.6 MB, free: 28.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.21e-05/0.1379, allocations: 69.91 kB / 294.6 MB, free: 28.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.138, allocations: 36.72 kB / 294.7 MB, free: 28.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.139, allocations: 0.6001 MB / 295.3 MB, free: 28.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.1443, allocations: 4.869 MB / 300.1 MB, free: 26.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007008/0.145, allocations: 0.5182 MB / 300.7 MB, free: 26.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.1453, allocations: 218.8 kB / 300.9 MB, free: 26.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.1454, allocations: 17.34 kB / 300.9 MB, free: 26.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005344/0.1459, allocations: 0.6304 MB / 301.5 MB, free: 25.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 2.916e-06/0.1459, allocations: 0 / 301.5 MB, free: 25.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.007561/0.1535, allocations: 4.221 MB / 305.7 MB, free: 24.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.1535, allocations: 301.7 kB / 306 MB, free: 23.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.154, allocations: 0.6814 MB / 306.7 MB, free: 23.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/0.154, allocations: 53.64 kB / 306.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002613/0.1543, allocations: 0.7397 MB / 307.5 MB, free: 22.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.1544, allocations: 418.1 kB / 307.9 MB, free: 22.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000257/0.1547, allocations: 264 kB / 308.2 MB, free: 22.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1548, allocations: 0.5822 MB / 308.8 MB, free: 21.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/0.1551, allocations: 283.8 kB / 309 MB, free: 21.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.1555, allocations: 0.9015 MB / 309.9 MB, free: 20.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006666/0.1562, allocations: 0.8762 MB / 310.8 MB, free: 19.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1562, allocations: 8 kB / 310.8 MB, free: 19.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001047/0.1573, allocations: 1.111 MB / 311.9 MB, free: 18.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1573, allocations: 8 kB / 311.9 MB, free: 18.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.1573, allocations: 8 kB / 311.9 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002303/0.1575, allocations: 159.2 kB / 312.1 MB, free: 17.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000694/0.1582, allocations: 331.5 kB / 312.4 MB, free: 17.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.1597, allocations: 5.592 MB / 318 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005755/0.1603, allocations: 139.9 kB / 318.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/0.1603, allocations: 43.98 kB / 318.2 MB, free: 11.54 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.0002603/0.1606, allocations: 246.2 kB / 318.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.1607, allocations: 139.4 kB / 318.6 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.458e-05/0.1608, allocations: 129.7 kB / 318.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1608, allocations: 12 kB / 318.7 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1608, allocations: 3.938 kB / 318.7 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1608, allocations: 3.984 kB / 318.7 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.1633, allocations: 2.685 MB / 321.4 MB, free: 8.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.1633, allocations: 12 kB / 321.4 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/0.1638, allocations: 239.7 kB / 321.6 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002859/0.1641, allocations: 307.7 kB / 321.9 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.124e-05/0.1642, allocations: 43.94 kB / 322 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007104/0.1649, allocations: 2.694 MB / 324.7 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.1649, allocations: 19.44 kB / 324.7 MB, free: 4.723 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1661, allocations: 1.494 MB / 326.2 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/0.1664, allocations: 251.1 kB / 326.4 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.602e-05/0.1665, allocations: 44 kB / 326.5 MB, free: 2.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.1669, allocations: 111.9 kB / 326.6 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.1671, allocations: 156.2 kB / 326.7 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/0.1671, allocations: 32 kB / 326.8 MB, free: 2.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002064/0.1673, allocations: 410.8 kB / 327.2 MB, free: 2.059 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1673, allocations: 0 / 327.2 MB, free: 2.059 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007466/0.1681, allocations: 344 kB / 327.5 MB, free: 1.723 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.0001939/0.1682, allocations: 182.8 kB / 327.7 MB, free: 1.535 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009743/0.1692, allocations: 1.295 MB / 329 MB, free: 196 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1692, allocations: 4 kB / 329 MB, free: 192 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004802/0.1697, allocations: 0.5232 MB / 329.5 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000658/0.1704, allocations: 215.5 kB / 329.7 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/0.1739, allocations: 2.76 MB / 332.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.1741, allocations: 248.7 kB / 332.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005718/0.1747, allocations: 151.9 kB / 332.9 MB, free: 12.06 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005171/0.1752, allocations: 290.1 kB / 333.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of SimCode: time 1.203e-06/0.1752, allocations: 0 / 333.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of Templates: time 0.02525/0.2004, allocations: 19.57 MB / 352.7 MB, free: 8.469 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 -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.161797743756324]