Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9465/0.9465, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.555e-06/2.555e-06, allocations: 4 kB / 273.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.182e-05/2.438e-05, allocations: 9.969 kB / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007643/0.007668, allocations: 9.043 MB / 282.6 MB, free: 8.023 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004498/0.01217, allocations: 2.526 MB / 285.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.01321, allocations: 35.81 kB / 285.1 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007393/0.01395, allocations: 336.9 kB / 285.4 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.01515, allocations: 0.5305 MB / 286 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.01621, allocations: 0.6631 MB / 286.6 MB, free: 3.922 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.01829, allocations: 2.437 MB / 289.1 MB, free: 1.477 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001085/0.01937, allocations: 0.7302 MB / 289.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1114/0.1308, allocations: 1.319 MB / 291.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.1321, allocations: 0.6975 MB / 291.8 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005884/0.1327, allocations: 279.9 kB / 292.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007328/0.1335, allocations: 347.8 kB / 292.4 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003931/0.1338, allocations: 0.5263 MB / 293 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.1349, allocations: 0.6912 MB / 293.7 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00257/0.1375, allocations: 1.635 MB / 295.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1375, allocations: 0.9375 kB / 295.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1375, allocations: 0 / 295.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001056/0.1376, allocations: 0.5312 kB / 295.3 MB, free: 16.71 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.004204/0.1418, allocations: 1.885 MB / 297.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.1418, allocations: 11.5 kB / 297.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004676/0.1423, allocations: 269.2 kB / 297.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008685/0.1432, allocations: 0.5015 MB / 297.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002325/0.1434, allocations: 441.2 kB / 298.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001955/0.1436, allocations: 162.6 kB / 298.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.1453, allocations: 1.284 MB / 299.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/0.1453, allocations: 10.22 kB / 299.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.419e-05/0.1454, allocations: 68.88 kB / 299.9 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.1454, allocations: 36.56 kB / 299.9 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009585/0.1464, allocations: 0.5005 MB / 300.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004644/0.151, allocations: 3.878 MB / 304.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006914/0.1517, allocations: 0.5083 MB / 304.8 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.152, allocations: 190.6 kB / 305 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.152, allocations: 18.34 kB / 305 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/0.1524, allocations: 0.5876 MB / 305.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.234e-06/0.1524, allocations: 0.9688 kB / 305.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.008971/0.1614, allocations: 4.705 MB / 310.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.1614, allocations: 306.6 kB / 310.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004755/0.1619, allocations: 0.6214 MB / 311.2 MB, free: 10 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.635e-05/0.162, allocations: 53.7 kB / 311.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.1623, allocations: 0.6208 MB / 311.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.1624, allocations: 417.6 kB / 312.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.1627, allocations: 250.9 kB / 312.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.737e-05/0.1628, allocations: 414.7 kB / 313 MB, free: 8.383 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002931/0.1631, allocations: 226.8 kB / 313.2 MB, free: 8.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.1635, allocations: 0.7429 MB / 313.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006266/0.1641, allocations: 0.7601 MB / 314.7 MB, free: 6.496 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1641, allocations: 4 kB / 314.7 MB, free: 6.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.0009474/0.165, allocations: 0.8612 MB / 315.6 MB, free: 5.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1651, allocations: 8 kB / 315.6 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.1651, allocations: 12 kB / 315.6 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.1653, allocations: 177 kB / 315.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008257/0.1662, allocations: 384.5 kB / 316.1 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.1675, allocations: 3.819 MB / 319.9 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006457/0.1682, allocations: 143.9 kB / 320.1 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/0.1682, allocations: 40 kB / 320.1 MB, free: 0.9141 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.0003628/0.1686, allocations: 210.3 kB / 320.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.1687, allocations: 99.91 kB / 320.4 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.009e-05/0.1688, allocations: 125.7 kB / 320.6 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1688, allocations: 12 kB / 320.6 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.1688, allocations: 0 / 320.6 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.1688, allocations: 11.97 kB / 320.6 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002701/0.1715, allocations: 2.028 MB / 322.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.1715, allocations: 12.03 kB / 322.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006049/0.1721, allocations: 275 kB / 322.9 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002883/0.1724, allocations: 219.8 kB / 323.1 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.615e-05/0.1725, allocations: 35.98 kB / 323.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008549/0.1734, allocations: 1.803 MB / 324.9 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.1734, allocations: 11.19 kB / 324.9 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.1745, allocations: 1.158 MB / 326.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002837/0.1748, allocations: 125.1 kB / 326.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.1749, allocations: 47.83 kB / 326.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.1754, allocations: 115.9 kB / 326.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.1756, allocations: 155.7 kB / 326.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.1756, allocations: 40.97 kB / 326.6 MB, free: 10.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002462/0.1759, allocations: 287 kB / 326.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1759, allocations: 0 / 326.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008998/0.1768, allocations: 339.9 kB / 327.2 MB, free: 9.762 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.001092/0.1779, allocations: 0.4934 MB / 327.7 MB, free: 9.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.1793, allocations: 1.055 MB / 328.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-05/0.1794, allocations: 15.59 kB / 328.8 MB, free: 8.473 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004674/0.1798, allocations: 458.9 kB / 329.2 MB, free: 8.055 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006702/0.1805, allocations: 228.6 kB / 329.4 MB, free: 7.832 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.184, allocations: 2.582 MB / 332 MB, free: 5.152 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.1842, allocations: 253.5 kB / 332.3 MB, free: 4.887 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005333/0.1847, allocations: 162.3 kB / 332.4 MB, free: 4.727 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005149/0.1853, allocations: 257.3 kB / 332.7 MB, free: 4.477 MB / 282.7 MB Notification: Performance of SimCode: time 1.633e-06/0.1853, allocations: 4 kB / 332.7 MB, free: 4.473 MB / 282.7 MB Notification: Performance of Templates: time 0.02551/0.2108, allocations: 20.27 MB / 352.9 MB, free: 0.5078 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.064575365744531]