Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 73.95 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 152.2 kB / 24.49 MB, free: 3.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 47.77 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09375, allocations: 52.16 MB / 371.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01073/0.1045, allocations: 8.103 MB / 379.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004653/0.1091, allocations: 2.255 MB / 381.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008057/0.1099, allocations: 35.81 kB / 382 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007701/0.1107, allocations: 329 kB / 382.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.1119, allocations: 0.4919 MB / 382.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.1133, allocations: 0.6594 MB / 383.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0028/0.1161, allocations: 2.345 MB / 385.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.1172, allocations: 0.7021 MB / 386.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.1183, allocations: 0.849 MB / 387.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.1193, allocations: 0.7777 MB / 388.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003219/0.1197, allocations: 276 kB / 388.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005604/0.1202, allocations: 339.9 kB / 388.7 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004728/0.1207, allocations: 0.5065 MB / 389.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008218/0.1215, allocations: 0.7937 MB / 390 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003434/0.1249, allocations: 3.391 MB / 393.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1249, allocations: 0 / 393.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1249, allocations: 0 / 393.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.303e-05/0.125, allocations: 0 / 393.4 MB, free: 1.371 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004008/0.129, allocations: 1.893 MB / 395.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1291, allocations: 12.03 kB / 395.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.1294, allocations: 191.8 kB / 395.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.1308, allocations: 0.7782 MB / 396.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000469/0.1313, allocations: 450.3 kB / 396.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002513/0.1315, allocations: 159.9 kB / 396.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003417/0.1349, allocations: 1.891 MB / 398.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/0.135, allocations: 4 kB / 398.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.1351, allocations: 67.98 kB / 398.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.131e-05/0.1351, allocations: 36 kB / 398.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003548/0.1387, allocations: 1.562 MB / 400.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008854/0.1475, allocations: 5.014 MB / 405.5 MB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.1498, allocations: 0.9027 MB / 406.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.151, allocations: 0.5002 MB / 406.9 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.644e-05/0.151, allocations: 9 kB / 406.9 MB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001514/0.1525, allocations: 0.877 MB / 407.7 MB, free: 2.508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.665e-06/0.1525, allocations: 0 / 407.7 MB, free: 2.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.04173/0.1943, allocations: 8.688 MB / 416.4 MB, free: 9.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001913/0.1945, allocations: 303.7 kB / 416.7 MB, free: 9.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.1961, allocations: 0.7736 MB / 417.5 MB, free: 8.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/0.1963, allocations: 53.7 kB / 417.6 MB, free: 8.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008619/0.1972, allocations: 0.6799 MB / 418.2 MB, free: 7.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006234/0.1978, allocations: 432.3 kB / 418.7 MB, free: 7.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007593/0.1986, allocations: 251.5 kB / 418.9 MB, free: 7.191 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003182/0.1989, allocations: 406.7 kB / 419.3 MB, free: 6.785 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003182/0.2021, allocations: 0.8198 MB / 420.1 MB, free: 5.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003716/0.2058, allocations: 1.343 MB / 421.5 MB, free: 4.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005513/0.2113, allocations: 1.654 MB / 423.1 MB, free: 2.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.2113, allocations: 4 kB / 423.1 MB, free: 2.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005383/0.2167, allocations: 2.073 MB / 425.2 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.2167, allocations: 11.94 kB / 425.2 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.2167, allocations: 8 kB / 425.2 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.2172, allocations: 182.5 kB / 425.4 MB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.2189, allocations: 347.5 kB / 425.7 MB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004394/0.2233, allocations: 4.408 MB / 430.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.2249, allocations: 172 kB / 430.3 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.225, allocations: 52 kB / 430.4 MB, free: 11.14 MB / 398.1 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 (169): * Single equations (assignments): 166 * 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.0007644/0.2258, allocations: 383.5 kB / 430.7 MB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.226, allocations: 111.3 kB / 430.8 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.2262, allocations: 129.6 kB / 431 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.2263, allocations: 12 kB / 431 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.2263, allocations: 4 kB / 431 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.2263, allocations: 11.91 kB / 431 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008011/0.2343, allocations: 3.89 MB / 434.9 MB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.2343, allocations: 12 kB / 434.9 MB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.2355, allocations: 259.6 kB / 435.1 MB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005937/0.2361, allocations: 369.7 kB / 435.5 MB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.332e-05/0.2362, allocations: 39.98 kB / 435.5 MB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.2381, allocations: 2.145 MB / 437.7 MB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.306e-05/0.2381, allocations: 16.06 kB / 437.7 MB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00528/0.2434, allocations: 2.518 MB / 440.2 MB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005579/0.244, allocations: 255.1 kB / 440.5 MB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.2441, allocations: 44 kB / 440.5 MB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.2452, allocations: 147.8 kB / 440.7 MB, free: 364 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/0.2456, allocations: 176.2 kB / 440.8 MB, free: 188 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.04e-05/0.2457, allocations: 40 kB / 440.9 MB, free: 148 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007958/0.2465, allocations: 0.5147 MB / 441.4 MB, free: 15.63 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2465, allocations: 0 / 441.4 MB, free: 15.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00126/0.2477, allocations: 348 kB / 441.7 MB, free: 15.29 MB / 414.1 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002914/0.248, allocations: 180 kB / 441.9 MB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004753/0.2528, allocations: 1.94 MB / 443.8 MB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.2528, allocations: 4 kB / 443.8 MB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.2553, allocations: 1.028 MB / 444.9 MB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.2565, allocations: 179 kB / 445.1 MB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006638/0.2631, allocations: 3.127 MB / 448.2 MB, free: 8.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007655/0.2639, allocations: 0.5862 MB / 448.8 MB, free: 8.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008951/0.2648, allocations: 168 kB / 448.9 MB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003716/0.2652, allocations: 80.48 kB / 449 MB, free: 7.77 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2652, allocations: 0 / 449 MB, free: 7.77 MB / 414.1 MB Notification: Performance of Templates: time 0.0326/0.2978, allocations: 18.18 MB / 467.2 MB, free: 5.801 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.198379913927056]