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.001456/0.001456, allocations: 78.66 kB / 21.42 MB, free: 3.07 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.001689/0.001689, allocations: 173.7 kB / 24.82 MB, free: 9.27 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.9822/0.9822, allocations: 177.1 MB / 205.3 MB, free: 5.504 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 1.423e-06/1.423e-06, allocations: 0 / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.806e-05/1.949e-05, allocations: 6.25 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.00896/0.00898, allocations: 8.976 MB / 282.4 MB, free: 8.266 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003702/0.01268, allocations: 2.43 MB / 284.8 MB, free: 5.828 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006929/0.01337, allocations: 31.88 kB / 284.8 MB, free: 5.797 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000602/0.01398, allocations: 352.8 kB / 285.2 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008757/0.01485, allocations: 0.5306 MB / 285.7 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.01572, allocations: 0.667 MB / 286.4 MB, free: 4.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.01726, allocations: 2.434 MB / 288.8 MB, free: 1.805 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007214/0.01798, allocations: 0.6944 MB / 289.5 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1096/0.1276, allocations: 1.326 MB / 290.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001305/0.1289, allocations: 0.6928 MB / 291.5 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006955/0.1296, allocations: 279.5 kB / 291.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007564/0.1304, allocations: 346.4 kB / 292.1 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.1307, allocations: 0.5261 MB / 292.7 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009757/0.1317, allocations: 0.6917 MB / 293.4 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.1338, allocations: 1.641 MB / 295 MB, free: 16.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.1338, allocations: 1.656 kB / 295 MB, free: 16.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1338, allocations: 0.9688 kB / 295 MB, free: 16.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.833e-05/0.1339, allocations: 0 / 295 MB, free: 16.62 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.003216/0.1371, allocations: 2.022 MB / 297 MB, free: 15.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1371, allocations: 10.33 kB / 297 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004829/0.1376, allocations: 322 kB / 297.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1387, allocations: 0.7804 MB / 298.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.139, allocations: 443.4 kB / 298.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/0.1392, allocations: 162.2 kB / 298.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.1409, allocations: 1.256 MB / 300 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.145e-05/0.1409, allocations: 4.656 kB / 300 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.369e-05/0.141, allocations: 67.03 kB / 300 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.968e-05/0.1411, allocations: 36.69 kB / 300.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009778/0.142, allocations: 0.5716 MB / 300.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00449/0.1465, allocations: 4.854 MB / 305.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006639/0.1472, allocations: 0.5089 MB / 306 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002321/0.1474, allocations: 206.8 kB / 306.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.1475, allocations: 15.5 kB / 306.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.1478, allocations: 0.6151 MB / 306.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 1.753e-06/0.1479, allocations: 0 / 306.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.006642/0.1545, allocations: 4.138 MB / 311 MB, free: 9.586 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.1545, allocations: 302.3 kB / 311.3 MB, free: 9.238 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.155, allocations: 0.6829 MB / 312 MB, free: 8.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.557e-05/0.155, allocations: 55.92 kB / 312 MB, free: 8.844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.1553, allocations: 0.739 MB / 312.8 MB, free: 8.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.1555, allocations: 429.5 kB / 313.2 MB, free: 7.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.1558, allocations: 259.8 kB / 313.4 MB, free: 7.727 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1559, allocations: 0.5773 MB / 314 MB, free: 7.188 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.1562, allocations: 267.8 kB / 314.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004564/0.1566, allocations: 0.8891 MB / 315.2 MB, free: 5.863 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006754/0.1573, allocations: 0.8537 MB / 316 MB, free: 4.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1573, allocations: 10.23 kB / 316 MB, free: 4.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001074/0.1584, allocations: 1.084 MB / 317.1 MB, free: 3.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1584, allocations: 8 kB / 317.1 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1584, allocations: 8.719 kB / 317.1 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002922/0.1587, allocations: 193.6 kB / 317.3 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007216/0.1594, allocations: 329.4 kB / 317.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00199/0.1614, allocations: 5.607 MB / 323.2 MB, free: 13.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006371/0.1621, allocations: 135.9 kB / 323.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.1621, allocations: 40 kB / 323.4 MB, free: 13.3 MB / 282.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.0003155/0.1625, allocations: 242.8 kB / 323.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.1626, allocations: 151.3 kB / 323.8 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.1627, allocations: 129.7 kB / 323.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.1627, allocations: 12 kB / 323.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1627, allocations: 0 / 323.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1627, allocations: 11.98 kB / 324 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.1658, allocations: 2.621 MB / 326.6 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.1658, allocations: 12 kB / 326.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00051/0.1663, allocations: 242.7 kB / 326.8 MB, free: 9.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002766/0.1666, allocations: 227.2 kB / 327 MB, free: 9.672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.936e-05/0.1666, allocations: 43.92 kB / 327.1 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009762/0.1676, allocations: 2.624 MB / 329.7 MB, free: 6.887 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.1676, allocations: 11.47 kB / 329.7 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.1689, allocations: 1.429 MB / 331.1 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.1692, allocations: 251.6 kB / 331.4 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.57e-05/0.1693, allocations: 47.98 kB / 331.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004214/0.1697, allocations: 115.9 kB / 331.6 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.1699, allocations: 151.3 kB / 331.7 MB, free: 4.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.17, allocations: 39.98 kB / 331.7 MB, free: 4.711 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002519/0.1702, allocations: 414.3 kB / 332.1 MB, free: 4.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1702, allocations: 0 / 332.1 MB, free: 4.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000721/0.1709, allocations: 340 kB / 332.5 MB, free: 4.008 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.000725/0.1717, allocations: 402.7 kB / 332.9 MB, free: 3.777 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.1728, allocations: 1.272 MB / 334.1 MB, free: 2.527 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.1728, allocations: 0 / 334.1 MB, free: 2.527 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004545/0.1733, allocations: 0.523 MB / 334.7 MB, free: 2.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006836/0.174, allocations: 218.8 kB / 334.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.1771, allocations: 2.791 MB / 337.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.1773, allocations: 257.4 kB / 337.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004193/0.1777, allocations: 152 kB / 338.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005156/0.1783, allocations: 282.1 kB / 338.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1783, allocations: 4 kB / 338.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of Templates: time 0.02341/0.2017, allocations: 19.92 MB / 358.3 MB, free: 10.57 MB / 314.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 -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.2208995479159057]