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.001391/0.001391, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001524/0.001524, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9398/0.9398, allocations: 177 MB / 204.8 MB, free: 5.566 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.502e-06/1.502e-06, allocations: 0 / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.101e-05, allocations: 5.266 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01985/0.01987, allocations: 9.281 MB / 282.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007918/0.02779, allocations: 2.434 MB / 284.6 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005166/0.03296, allocations: 27.88 kB / 284.7 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007426/0.0337, allocations: 352.8 kB / 285 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009352/0.03463, allocations: 0.5306 MB / 285.5 MB, free: 4.723 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008815/0.03552, allocations: 0.6631 MB / 286.2 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001886/0.0374, allocations: 2.433 MB / 288.6 MB, free: 1.617 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000848/0.03825, allocations: 0.7061 MB / 289.3 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1137/0.152, allocations: 1.31 MB / 290.7 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.1533, allocations: 0.6935 MB / 291.4 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005325/0.1538, allocations: 281.3 kB / 291.6 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007604/0.1546, allocations: 352.1 kB / 292 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000374/0.155, allocations: 0.5258 MB / 292.5 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009598/0.1559, allocations: 0.6904 MB / 293.2 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.1582, allocations: 1.64 MB / 294.8 MB, free: 16.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1582, allocations: 3.156 kB / 294.8 MB, free: 16.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1582, allocations: 1.656 kB / 294.8 MB, free: 16.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.956e-05/0.1582, allocations: 0.8125 kB / 294.8 MB, free: 16.47 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.002806/0.161, allocations: 2.007 MB / 296.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1611, allocations: 12.58 kB / 296.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005265/0.1616, allocations: 318.4 kB / 297.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008804/0.1625, allocations: 0.7895 MB / 298 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.1627, allocations: 440.4 kB / 298.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.1629, allocations: 163.5 kB / 298.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/0.1647, allocations: 1.366 MB / 299.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.296e-05/0.1648, allocations: 4.078 kB / 299.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.1649, allocations: 65.41 kB / 300 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.963e-05/0.1649, allocations: 37.28 kB / 300 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.1663, allocations: 0.7137 MB / 300.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006237/0.1725, allocations: 4.816 MB / 305.5 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008791/0.1734, allocations: 0.5622 MB / 306.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003371/0.1738, allocations: 243.5 kB / 306.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.701e-05/0.1738, allocations: 19.33 kB / 306.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.1743, allocations: 0.6463 MB / 307 MB, free: 10.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.304e-06/0.1743, allocations: 0 / 307 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.007862/0.1822, allocations: 4.748 MB / 311.8 MB, free: 8.383 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.1822, allocations: 305.5 kB / 312.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.1827, allocations: 0.7076 MB / 312.8 MB, free: 7.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.164e-05/0.1828, allocations: 53.95 kB / 312.8 MB, free: 7.527 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.183, allocations: 0.7325 MB / 313.5 MB, free: 6.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.1832, allocations: 421.3 kB / 314 MB, free: 6.383 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.1835, allocations: 253.1 kB / 314.2 MB, free: 6.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.963e-05/0.1836, allocations: 0.5742 MB / 314.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004984/0.1841, allocations: 348.4 kB / 315.1 MB, free: 5.203 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006188/0.1847, allocations: 0.9603 MB / 316.1 MB, free: 4.035 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009343/0.1856, allocations: 0.9581 MB / 317 MB, free: 2.973 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1856, allocations: 3.938 kB / 317 MB, free: 2.969 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001438/0.1871, allocations: 1.24 MB / 318.3 MB, free: 1.758 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1871, allocations: 12.66 kB / 318.3 MB, free: 1.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1871, allocations: 8 kB / 318.3 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.1874, allocations: 190.5 kB / 318.5 MB, free: 1.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007517/0.1881, allocations: 336.9 kB / 318.8 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002369/0.1905, allocations: 5.663 MB / 324.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006205/0.1911, allocations: 135.9 kB / 324.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.1912, allocations: 58.28 kB / 324.7 MB, free: 11.05 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.1915, allocations: 246.5 kB / 324.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.1917, allocations: 147.3 kB / 325.1 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.1918, allocations: 137.7 kB / 325.2 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.944e-06/0.1918, allocations: 12 kB / 325.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1918, allocations: 0 / 325.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1918, allocations: 3.984 kB / 325.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.1955, allocations: 2.838 MB / 328 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/0.1955, allocations: 12 kB / 328.1 MB, free: 7.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/0.1961, allocations: 242.1 kB / 328.3 MB, free: 7.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003102/0.1964, allocations: 235.2 kB / 328.5 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.425e-05/0.1965, allocations: 35.98 kB / 328.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.1976, allocations: 2.663 MB / 331.2 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.1976, allocations: 11.56 kB / 331.2 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.1993, allocations: 1.539 MB / 332.8 MB, free: 2.535 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003157/0.1997, allocations: 257.8 kB / 333 MB, free: 2.285 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.1998, allocations: 51.98 kB / 333.1 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004594/0.2002, allocations: 107.9 kB / 333.2 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.2005, allocations: 155.4 kB / 333.3 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.072e-05/0.2005, allocations: 43.98 kB / 333.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000361/0.2009, allocations: 450.9 kB / 333.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2009, allocations: 0 / 333.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001064/0.2019, allocations: 340 kB / 334.1 MB, free: 1.172 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.0008424/0.2028, allocations: 400.8 kB / 334.5 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.2043, allocations: 1.367 MB / 335.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.2043, allocations: 0 / 335.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005714/0.2049, allocations: 0.5427 MB / 336.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007115/0.2056, allocations: 221.8 kB / 336.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00368/0.2093, allocations: 2.805 MB / 339.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.2095, allocations: 257.4 kB / 339.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004603/0.21, allocations: 168 kB / 339.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002646/0.2102, allocations: 84.48 kB / 340 MB, free: 11.35 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2102, allocations: 0 / 340 MB, free: 11.35 MB / 298.7 MB Notification: Performance of Templates: time 0.02242/0.2326, allocations: 19.34 MB / 359.3 MB, free: 8.25 MB / 314.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.295710267033428]