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.001483/0.001483, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.00178/0.00178, allocations: 159.9 kB / 24.91 MB, free: 8.719 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.9844/0.9844, allocations: 177 MB / 205.2 MB, free: 5.043 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.773e-06/1.773e-06, allocations: 0 / 273.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.582e-05, allocations: 5.266 kB / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007122/0.007148, allocations: 9.043 MB / 282.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004282/0.01143, allocations: 2.53 MB / 285 MB, free: 5.359 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005692/0.012, allocations: 31.88 kB / 285 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005794/0.01258, allocations: 344.8 kB / 285.4 MB, free: 4.988 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007911/0.01337, allocations: 0.5267 MB / 285.9 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008472/0.01422, allocations: 0.667 MB / 286.6 MB, free: 3.789 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001498/0.01571, allocations: 2.43 MB / 289 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007401/0.01646, allocations: 0.7263 MB / 289.7 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1171/0.1335, allocations: 1.322 MB / 291.1 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.1349, allocations: 0.6981 MB / 291.8 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006001/0.1355, allocations: 279.2 kB / 292 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006711/0.1361, allocations: 351.5 kB / 292.4 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003741/0.1365, allocations: 0.5224 MB / 292.9 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.1377, allocations: 0.6933 MB / 293.6 MB, free: 16.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002161/0.1398, allocations: 1.639 MB / 295.2 MB, free: 16.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1398, allocations: 0 / 295.2 MB, free: 16.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1398, allocations: 1.219 kB / 295.2 MB, free: 16.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.097e-05/0.1399, allocations: 0.7969 kB / 295.2 MB, free: 16.78 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003136/0.143, allocations: 1.881 MB / 297.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1431, allocations: 12.98 kB / 297.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.1436, allocations: 264.5 kB / 297.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009008/0.1445, allocations: 0.5087 MB / 297.9 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/0.1447, allocations: 442.3 kB / 298.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001945/0.1449, allocations: 164.5 kB / 298.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.1467, allocations: 1.282 MB / 299.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.247e-05/0.1467, allocations: 12.06 kB / 299.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.495e-05/0.1468, allocations: 65.48 kB / 299.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.208e-05/0.1468, allocations: 36.78 kB / 299.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.148, allocations: 0.5079 MB / 300.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.1535, allocations: 3.868 MB / 304.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007853/0.1543, allocations: 0.5175 MB / 304.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.1545, allocations: 181 kB / 304.9 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.69e-05/0.1545, allocations: 18.34 kB / 305 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003559/0.1549, allocations: 0.5936 MB / 305.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 1.824e-06/0.1549, allocations: 0 / 305.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.008402/0.1633, allocations: 4.71 MB / 310.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.1633, allocations: 299.3 kB / 310.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.1638, allocations: 0.6243 MB / 311.2 MB, free: 9.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.255e-05/0.1638, allocations: 53.7 kB / 311.2 MB, free: 9.836 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.164, allocations: 0.6191 MB / 311.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.1642, allocations: 425.5 kB / 312.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.1644, allocations: 247.5 kB / 312.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.635e-05/0.1645, allocations: 411.8 kB / 312.9 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.1648, allocations: 226.8 kB / 313.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.1651, allocations: 0.745 MB / 313.9 MB, free: 7.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005849/0.1657, allocations: 0.7584 MB / 314.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.1657, allocations: 4 kB / 314.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.0008983/0.1666, allocations: 0.8653 MB / 315.5 MB, free: 5.539 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1666, allocations: 11.98 kB / 315.5 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.1666, allocations: 8 kB / 315.5 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002484/0.1669, allocations: 181.5 kB / 315.7 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007853/0.1677, allocations: 373.3 kB / 316.1 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.1691, allocations: 3.818 MB / 319.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00062/0.1697, allocations: 139.8 kB / 320 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/0.1697, allocations: 43.98 kB / 320.1 MB, free: 0.793 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 (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.0002745/0.17, allocations: 205.2 kB / 320.3 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1701, allocations: 99.91 kB / 320.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.763e-05/0.1702, allocations: 129.7 kB / 320.5 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1702, allocations: 12 kB / 320.5 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1702, allocations: 4 kB / 320.5 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1702, allocations: 3.984 kB / 320.5 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.1727, allocations: 2.034 MB / 322.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1727, allocations: 10.19 kB / 322.6 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.1733, allocations: 279.4 kB / 322.8 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002689/0.1736, allocations: 220.5 kB / 323 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.1737, allocations: 39.98 kB / 323.1 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008064/0.1745, allocations: 1.79 MB / 324.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.1745, allocations: 15.38 kB / 324.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.1756, allocations: 1.165 MB / 326 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.1758, allocations: 122.2 kB / 326.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/0.1759, allocations: 48 kB / 326.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.1763, allocations: 107.9 kB / 326.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.1765, allocations: 154.9 kB / 326.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.1766, allocations: 39.98 kB / 326.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002149/0.1768, allocations: 287.5 kB / 326.8 MB, free: 9.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1768, allocations: 0 / 326.8 MB, free: 9.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008078/0.1776, allocations: 339.9 kB / 327.1 MB, free: 9.648 MB / 282.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.0009622/0.1786, allocations: 497.2 kB / 327.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.1797, allocations: 1.055 MB / 328.7 MB, free: 8.379 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.082e-05/0.1797, allocations: 16.5 kB / 328.7 MB, free: 8.363 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.1801, allocations: 448.3 kB / 329.1 MB, free: 7.957 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.1807, allocations: 233.5 kB / 329.3 MB, free: 7.727 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.1839, allocations: 2.586 MB / 331.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.1841, allocations: 257.4 kB / 332.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004552/0.1846, allocations: 156.2 kB / 332.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005027/0.1851, allocations: 265.2 kB / 332.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of SimCode: time 1.523e-06/0.1851, allocations: 1.969 kB / 332.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of Templates: time 0.02313/0.2082, allocations: 20.26 MB / 352.9 MB, free: 388 kB / 298.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 -s gbode -gbm=radauIIA3 -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.070809197612107]