Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 80.34 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 166.2 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9776/0.9776, allocations: 177 MB / 205.9 MB, free: 4.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 274.1 MB, free: 4.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.594e-05, allocations: 2.312 kB / 274.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01098/0.01101, allocations: 8.984 MB / 283.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005888/0.0169, allocations: 2.423 MB / 285.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.0185, allocations: 35.81 kB / 285.6 MB, free: 8.777 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.0196, allocations: 348.9 kB / 285.9 MB, free: 8.434 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001917/0.02152, allocations: 0.5305 MB / 286.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.02259, allocations: 0.6592 MB / 287.1 MB, free: 7.238 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.0246, allocations: 2.441 MB / 289.5 MB, free: 4.789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008616/0.02546, allocations: 0.6945 MB / 290.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.02666, allocations: 1.314 MB / 291.5 MB, free: 2.727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007204/0.02738, allocations: 0.7012 MB / 292.2 MB, free: 2.023 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002402/0.02762, allocations: 280 kB / 292.5 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004873/0.02811, allocations: 359.7 kB / 292.9 MB, free: 1.398 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.02842, allocations: 0.522 MB / 293.4 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005857/0.02901, allocations: 0.69 MB / 294.1 MB, free: 188 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001576/0.03058, allocations: 1.643 MB / 295.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.03059, allocations: 0 / 295.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.03059, allocations: 0 / 295.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.0306, allocations: 0 / 295.7 MB, free: 14.54 MB / 282.7 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.002105/0.0327, allocations: 2.014 MB / 297.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.03274, allocations: 8.031 kB / 297.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.03311, allocations: 323.8 kB / 298.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009677/0.03408, allocations: 0.7841 MB / 298.9 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.03435, allocations: 442.3 kB / 299.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001741/0.03453, allocations: 164.3 kB / 299.4 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.03589, allocations: 1.258 MB / 300.7 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.03592, allocations: 7.953 kB / 300.7 MB, free: 9.324 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-05/0.03601, allocations: 60 kB / 300.8 MB, free: 9.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.03603, allocations: 40 kB / 300.8 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008087/0.03684, allocations: 0.575 MB / 301.4 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.0416, allocations: 4.849 MB / 306.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000673/0.04227, allocations: 0.5151 MB / 306.7 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.04251, allocations: 198.2 kB / 306.9 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.82e-05/0.04256, allocations: 25 kB / 307 MB, free: 2.812 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004732/0.04303, allocations: 0.6172 MB / 307.6 MB, free: 2.09 MB / 282.7 MB Notification: Performance of pre-optimization done (n=90): time 2.104e-06/0.04304, allocations: 4 kB / 307.6 MB, free: 2.086 MB / 282.7 MB Notification: Performance of matching and sorting (n=119): time 0.008232/0.05127, allocations: 4.122 MB / 311.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.05137, allocations: 299.7 kB / 312 MB, free: 13.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.05191, allocations: 0.694 MB / 312.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.751e-05/0.05199, allocations: 53.7 kB / 312.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.05238, allocations: 0.741 MB / 313.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.05262, allocations: 420.4 kB / 313.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003132/0.05293, allocations: 257.1 kB / 314.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.05312, allocations: 0.5896 MB / 314.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.05349, allocations: 271.7 kB / 315 MB, free: 10.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008496/0.05434, allocations: 0.8821 MB / 315.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.05514, allocations: 0.8503 MB / 316.7 MB, free: 8.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.05514, allocations: 3.938 kB / 316.7 MB, free: 8.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001315/0.05646, allocations: 1.093 MB / 317.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.05648, allocations: 8 kB / 317.8 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.05649, allocations: 15.92 kB / 317.9 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003042/0.05679, allocations: 178.8 kB / 318 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008263/0.05762, allocations: 343.5 kB / 318.4 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002753/0.06037, allocations: 5.585 MB / 324 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006877/0.06106, allocations: 139.9 kB / 324.1 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-05/0.06113, allocations: 36 kB / 324.1 MB, free: 0.6562 MB / 298.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 (168): * Single equations (assignments): 165 * 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.0003424/0.06147, allocations: 250.1 kB / 324.4 MB, free: 412 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.06165, allocations: 143.3 kB / 324.5 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.06178, allocations: 133.7 kB / 324.6 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.06178, allocations: 12.14 kB / 324.7 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.06179, allocations: 0 / 324.7 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.0618, allocations: 11.91 kB / 324.7 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003016/0.06482, allocations: 2.619 MB / 327.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.06482, allocations: 8.219 kB / 327.3 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/0.06538, allocations: 239.7 kB / 327.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003161/0.0657, allocations: 239 kB / 327.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.06576, allocations: 43.98 kB / 327.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.06707, allocations: 2.624 MB / 330.4 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.06708, allocations: 19.94 kB / 330.4 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.0685, allocations: 1.417 MB / 331.9 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003502/0.06885, allocations: 247.2 kB / 332.1 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.06896, allocations: 51.98 kB / 332.2 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.06944, allocations: 115.9 kB / 332.3 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.06964, allocations: 148.2 kB / 332.4 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.06969, allocations: 39.98 kB / 332.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000282/0.06997, allocations: 406.8 kB / 332.8 MB, free: 7.363 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06997, allocations: 4 kB / 332.8 MB, free: 7.359 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008372/0.07081, allocations: 343.9 kB / 333.2 MB, free: 7.023 MB / 314.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007793/0.07159, allocations: 408 kB / 333.6 MB, free: 6.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.07292, allocations: 1.269 MB / 334.9 MB, free: 5.406 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.07293, allocations: 1.875 kB / 334.9 MB, free: 5.406 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006634/0.07359, allocations: 0.5117 MB / 335.4 MB, free: 4.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009619/0.07455, allocations: 222.4 kB / 335.6 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.07944, allocations: 2.79 MB / 338.4 MB, free: 1.664 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.07969, allocations: 257.4 kB / 338.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005928/0.08028, allocations: 152 kB / 338.8 MB, free: 1.234 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000662/0.08094, allocations: 286.1 kB / 339.1 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of SimCode: time 7.21e-07/0.08094, allocations: 8 kB / 339.1 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of Templates: time 0.1428/0.2237, allocations: 20.31 MB / 359.4 MB, free: 73.01 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.4221458612009883]