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.002376/0.002376, allocations: 99.53 kB / 20.96 MB, free: 3.457 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.002873/0.002873, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 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 1.643/1.643, allocations: 177 MB / 204.4 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.663e-06/1.663e-06, allocations: 0 / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.812e-05/2.979e-05, allocations: 5.266 kB / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01373/0.01376, allocations: 9.199 MB / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00561/0.01937, allocations: 2.423 MB / 283.8 MB, free: 6.102 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.02083, allocations: 27.88 kB / 283.9 MB, free: 6.074 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.02221, allocations: 352.9 kB / 284.2 MB, free: 5.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002273/0.02449, allocations: 0.5228 MB / 284.7 MB, free: 5.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001769/0.02626, allocations: 0.667 MB / 285.4 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003766/0.03002, allocations: 2.437 MB / 287.8 MB, free: 2.086 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001762/0.03178, allocations: 0.7023 MB / 288.5 MB, free: 1.336 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.03449, allocations: 1.314 MB / 289.8 MB, free: 20 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1206/0.1551, allocations: 0.6946 MB / 290.5 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006085/0.1557, allocations: 279.3 kB / 290.8 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008762/0.1566, allocations: 356.5 kB / 291.2 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004581/0.1571, allocations: 0.5261 MB / 291.7 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.1581, allocations: 0.6923 MB / 292.4 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003985/0.1621, allocations: 3.545 MB / 295.9 MB, free: 17.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1621, allocations: 4.344 kB / 295.9 MB, free: 17.37 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1621, allocations: 0 / 295.9 MB, free: 17.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.753e-05/0.1622, allocations: 0.6562 kB / 295.9 MB, free: 17.37 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.004289/0.1664, allocations: 2.21 MB / 298.1 MB, free: 16.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1665, allocations: 13.36 kB / 298.2 MB, free: 16.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005674/0.167, allocations: 321.5 kB / 298.5 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.1683, allocations: 0.7943 MB / 299.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002632/0.1685, allocations: 446.5 kB / 299.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002485/0.1688, allocations: 165.8 kB / 299.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003008/0.1718, allocations: 1.948 MB / 301.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.128e-05/0.1719, allocations: 2.219 kB / 301.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.172, allocations: 69.09 kB / 301.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.966e-05/0.172, allocations: 38.19 kB / 301.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.175, allocations: 1.413 MB / 303.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009127/0.1841, allocations: 7.827 MB / 311.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.1859, allocations: 0.9006 MB / 312.1 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008739/0.1868, allocations: 473 kB / 312.5 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.56e-05/0.1869, allocations: 14.41 kB / 312.5 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001118/0.188, allocations: 0.9131 MB / 313.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.605e-06/0.188, allocations: 4 kB / 313.5 MB, free: 6.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.02049/0.2085, allocations: 6.831 MB / 320.3 MB, free: 15.67 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002092/0.2087, allocations: 295.7 kB / 320.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.2103, allocations: 1.018 MB / 321.6 MB, free: 14.28 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.2104, allocations: 57.73 kB / 321.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.2112, allocations: 0.7903 MB / 322.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005165/0.2117, allocations: 477.1 kB / 322.9 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006828/0.2124, allocations: 333.2 kB / 323.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0005183/0.2129, allocations: 0.6864 MB / 323.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.215, allocations: 0.7223 MB / 324.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002765/0.2178, allocations: 1.423 MB / 326.1 MB, free: 9.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/0.2219, allocations: 1.703 MB / 327.8 MB, free: 7.789 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.2219, allocations: 0 / 327.8 MB, free: 7.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005298/0.2272, allocations: 2.004 MB / 329.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.2272, allocations: 8 kB / 329.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.2273, allocations: 8 kB / 329.8 MB, free: 5.793 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006894/0.2279, allocations: 254 kB / 330 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.2297, allocations: 340.9 kB / 330.4 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005956/0.2357, allocations: 6.102 MB / 336.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.2374, allocations: 139.9 kB / 336.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.2375, allocations: 54.84 kB / 336.7 MB, free: 14.59 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (170): * Single equations (assignments): 167 * 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.0008805/0.2384, allocations: 424.5 kB / 337.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003325/0.2387, allocations: 147.3 kB / 337.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000354/0.2391, allocations: 129.8 kB / 337.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.2391, allocations: 12 kB / 337.4 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.2391, allocations: 3.938 kB / 337.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.2391, allocations: 11.97 kB / 337.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009691/0.2488, allocations: 4.38 MB / 341.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.2488, allocations: 8 kB / 341.8 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.25, allocations: 249.3 kB / 342 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006917/0.2507, allocations: 298.8 kB / 342.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.2508, allocations: 35.98 kB / 342.3 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002669/0.2535, allocations: 2.855 MB / 345.2 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.647e-05/0.2535, allocations: 15.38 kB / 345.2 MB, free: 5.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005608/0.2591, allocations: 2.472 MB / 347.7 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007408/0.2599, allocations: 259.1 kB / 347.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.2601, allocations: 47.98 kB / 348 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.2611, allocations: 115.9 kB / 348.1 MB, free: 2.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000401/0.2615, allocations: 178.9 kB / 348.3 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.723e-05/0.2616, allocations: 44 kB / 348.3 MB, free: 2.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009682/0.2626, allocations: 0.5927 MB / 348.9 MB, free: 1.922 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2626, allocations: 4 kB / 348.9 MB, free: 1.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001418/0.264, allocations: 340 kB / 349.2 MB, free: 1.586 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (113): * Single equations (assignments): 111 * 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.002642/0.2667, allocations: 466.7 kB / 349.7 MB, free: 1.336 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004824/0.2715, allocations: 2.076 MB / 351.8 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.2715, allocations: 7.406 kB / 351.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.2734, allocations: 0.8434 MB / 352.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.2747, allocations: 218.8 kB / 352.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00663/0.2813, allocations: 3.127 MB / 355.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008512/0.2822, allocations: 0.5941 MB / 356.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008673/0.283, allocations: 152.1 kB / 356.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/0.2835, allocations: 88.48 kB / 356.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.302e-06/0.2835, allocations: 0 / 356.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of Templates: time 0.03673/0.3202, allocations: 18.48 MB / 375.3 MB, free: 7.789 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.397440875065513]