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.001797/0.001797, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002049/0.002049, allocations: 195.1 kB / 23.71 MB, free: 4.406 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.453/1.453, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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.001662/0.001662, allocations: 47.92 kB / 370.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.23, allocations: 52.18 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01063/0.2407, allocations: 8.1 MB / 431.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.2451, allocations: 2.263 MB / 433.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007102/0.2458, allocations: 31.88 kB / 433.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007759/0.2466, allocations: 325 kB / 433.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.2478, allocations: 0.5075 MB / 434.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.2489, allocations: 0.6478 MB / 434.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.2514, allocations: 2.349 MB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.2526, allocations: 0.6943 MB / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.2537, allocations: 0.8452 MB / 438.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.2547, allocations: 0.7777 MB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.255, allocations: 280 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000588/0.2556, allocations: 343.9 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004817/0.2561, allocations: 0.5026 MB / 440.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008461/0.2569, allocations: 0.8015 MB / 441.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003538/0.2605, allocations: 3.387 MB / 444.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2605, allocations: 0 / 444.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2605, allocations: 0 / 444.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.227e-05/0.2605, allocations: 0 / 444.9 MB, free: 8.527 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.00393/0.2645, allocations: 1.897 MB / 446.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.2645, allocations: 16.91 kB / 446.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004019/0.2649, allocations: 187.8 kB / 447 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.2664, allocations: 0.7743 MB / 447.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004272/0.2668, allocations: 450.3 kB / 448.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002676/0.267, allocations: 167.9 kB / 448.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003417/0.2705, allocations: 1.891 MB / 450.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.86e-05/0.2705, allocations: 7.922 kB / 450.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001511/0.2707, allocations: 68 kB / 450.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/0.2707, allocations: 36 kB / 450.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003545/0.2742, allocations: 1.562 MB / 451.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008915/0.2832, allocations: 5.006 MB / 457 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.2854, allocations: 0.8984 MB / 457.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.2865, allocations: 0.4963 MB / 458.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-05/0.2866, allocations: 17 kB / 458.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001452/0.288, allocations: 0.8653 MB / 459.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.926e-06/0.288, allocations: 4 kB / 459.2 MB, free: 9.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03546/0.3235, allocations: 8.687 MB / 467.9 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001856/0.3237, allocations: 303.7 kB / 468.2 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.3249, allocations: 0.7736 MB / 469 MB, free: 15.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.325, allocations: 57.64 kB / 469 MB, free: 15.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006243/0.3256, allocations: 0.6799 MB / 469.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004265/0.3261, allocations: 428.3 kB / 470.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005052/0.3266, allocations: 247.5 kB / 470.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.3268, allocations: 410.7 kB / 470.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.3289, allocations: 0.8121 MB / 471.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002558/0.3315, allocations: 1.343 MB / 472.9 MB, free: 11.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004014/0.3355, allocations: 1.65 MB / 474.6 MB, free: 9.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.3355, allocations: 8 kB / 474.6 MB, free: 9.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005281/0.3408, allocations: 2.077 MB / 476.7 MB, free: 7.785 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.3408, allocations: 11.94 kB / 476.7 MB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.3408, allocations: 11.98 kB / 476.7 MB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.3413, allocations: 182.5 kB / 476.9 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.343, allocations: 359.4 kB / 477.2 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004573/0.3476, allocations: 4.4 MB / 481.6 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.3492, allocations: 172 kB / 481.8 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.3493, allocations: 48 kB / 481.8 MB, free: 2.305 MB / 382.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.0007939/0.3501, allocations: 391.5 kB / 482.2 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.3504, allocations: 111.3 kB / 482.3 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000326/0.3507, allocations: 133.6 kB / 482.5 MB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3507, allocations: 12 kB / 482.5 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.3507, allocations: 0 / 482.5 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3507, allocations: 7.922 kB / 482.5 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008622/0.3594, allocations: 3.894 MB / 486.4 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-05/0.3594, allocations: 12 kB / 486.4 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.3606, allocations: 259.6 kB / 486.6 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/0.3612, allocations: 373.5 kB / 487 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.3613, allocations: 39.92 kB / 487 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002023/0.3633, allocations: 2.145 MB / 489.2 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.915e-05/0.3634, allocations: 15.94 kB / 489.2 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005476/0.3688, allocations: 2.511 MB / 491.7 MB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007337/0.3696, allocations: 251.2 kB / 492 MB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/0.3699, allocations: 43.98 kB / 492 MB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.3711, allocations: 147.8 kB / 492.2 MB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003866/0.3715, allocations: 176.2 kB / 492.3 MB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.3716, allocations: 47.98 kB / 492.4 MB, free: 7.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009482/0.3725, allocations: 0.5147 MB / 492.9 MB, free: 6.801 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3725, allocations: 0 / 492.9 MB, free: 6.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00144/0.374, allocations: 340 kB / 493.2 MB, free: 6.469 MB / 398.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.0003532/0.3743, allocations: 180.2 kB / 493.4 MB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00477/0.3791, allocations: 1.937 MB / 495.3 MB, free: 4.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.958e-06/0.3791, allocations: 4 kB / 495.3 MB, free: 4.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002508/0.3816, allocations: 1.036 MB / 496.4 MB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.3829, allocations: 179 kB / 496.5 MB, free: 3.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006568/0.3894, allocations: 3.134 MB / 499.7 MB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008266/0.3903, allocations: 0.5939 MB / 0.4885 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000838/0.3911, allocations: 167.9 kB / 0.4887 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/0.3915, allocations: 75.42 kB / 0.4888 GB, free: 14.93 MB / 414.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3915, allocations: 0 / 0.4888 GB, free: 14.93 MB / 414.1 MB Notification: Performance of Templates: time 0.03466/0.4262, allocations: 19.79 MB / 0.5081 GB, free: 11.34 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/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.2543491628021]