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.001964/0.001964, allocations: 107.8 kB / 20.48 MB, free: 1.125 MB / 14.72 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.002536/0.002536, allocations: 212.2 kB / 23.78 MB, free: 4.328 MB / 14.72 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.518/1.518, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 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 0.002087/0.002087, allocations: 63.89 kB / 378.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2333, allocations: 53.4 MB / 431.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01094/0.2442, allocations: 8.204 MB / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0048/0.249, allocations: 2.407 MB / 442.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/0.2502, allocations: 31.81 kB / 442.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.2513, allocations: 344.9 kB / 442.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001608/0.2529, allocations: 0.5114 MB / 443.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.2543, allocations: 0.6555 MB / 443.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002993/0.2573, allocations: 2.364 MB / 446.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001401/0.2587, allocations: 0.6982 MB / 446.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001222/0.26, allocations: 0.8608 MB / 447.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.2611, allocations: 0.7893 MB / 448.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004008/0.2615, allocations: 284 kB / 448.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000691/0.2622, allocations: 344 kB / 449.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005294/0.2627, allocations: 0.5142 MB / 449.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.2638, allocations: 0.7977 MB / 450.5 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003957/0.2677, allocations: 3.439 MB / 453.9 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2677, allocations: 0 / 453.9 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2677, allocations: 0 / 453.9 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.2678, allocations: 0 / 453.9 MB, free: 200 kB / 350.1 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.005075/0.2729, allocations: 1.921 MB / 455.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.273, allocations: 16.02 kB / 455.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005138/0.2735, allocations: 191.8 kB / 456.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.275, allocations: 0.7938 MB / 456.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004308/0.2754, allocations: 446.3 kB / 457.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003358/0.2758, allocations: 159.9 kB / 457.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003997/0.2798, allocations: 1.879 MB / 459.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.824e-05/0.2798, allocations: 7.953 kB / 459.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.28, allocations: 71.94 kB / 459.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.42e-05/0.28, allocations: 36 kB / 459.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003531/0.2835, allocations: 1.527 MB / 461 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009717/0.2933, allocations: 4.998 MB / 466 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.2954, allocations: 0.8989 MB / 466.9 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.2965, allocations: 489.1 kB / 467.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.079e-05/0.2966, allocations: 9 kB / 467.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.2981, allocations: 0.8536 MB / 468.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.805e-06/0.2981, allocations: 0 / 468.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03528/0.3334, allocations: 8.554 MB / 476.7 MB, free: 8.789 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002041/0.3336, allocations: 303.6 kB / 477 MB, free: 8.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.3348, allocations: 0.7932 MB / 477.8 MB, free: 7.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.335, allocations: 53.7 kB / 477.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006507/0.3356, allocations: 0.6878 MB / 478.6 MB, free: 6.859 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000422/0.336, allocations: 440.3 kB / 479 MB, free: 6.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005363/0.3366, allocations: 251.5 kB / 479.3 MB, free: 6.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.3368, allocations: 402.7 kB / 479.6 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/0.3388, allocations: 0.7926 MB / 480.4 MB, free: 4.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00237/0.3412, allocations: 1.323 MB / 481.8 MB, free: 3.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/0.3449, allocations: 1.607 MB / 483.4 MB, free: 1.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/0.3449, allocations: 4 kB / 483.4 MB, free: 1.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004912/0.3498, allocations: 2.038 MB / 485.4 MB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.3498, allocations: 11.98 kB / 485.4 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.3499, allocations: 4.125 kB / 485.4 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005115/0.3504, allocations: 222.5 kB / 485.6 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.3521, allocations: 347.5 kB / 486 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004632/0.3567, allocations: 4.447 MB / 490.4 MB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.3582, allocations: 171.8 kB / 490.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/0.3584, allocations: 48.02 kB / 490.6 MB, free: 10.19 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 (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.0007587/0.3591, allocations: 391.5 kB / 491 MB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.3594, allocations: 107.3 kB / 491.1 MB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.3596, allocations: 133.8 kB / 491.3 MB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3596, allocations: 12 kB / 491.3 MB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.3597, allocations: 8 kB / 491.3 MB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.3597, allocations: 3.984 kB / 491.3 MB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008012/0.3677, allocations: 3.823 MB / 495.1 MB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/0.3677, allocations: 15.98 kB / 495.1 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.3689, allocations: 268 kB / 495.4 MB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005461/0.3694, allocations: 277.6 kB / 495.7 MB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.3696, allocations: 39.98 kB / 495.7 MB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.3716, allocations: 2.072 MB / 497.8 MB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.569e-05/0.3716, allocations: 15.94 kB / 497.8 MB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005076/0.3767, allocations: 2.405 MB / 0.4885 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006026/0.3773, allocations: 251.4 kB / 0.4887 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/0.3775, allocations: 47.98 kB / 0.4888 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.3786, allocations: 143.8 kB / 0.4889 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/0.3789, allocations: 176.2 kB / 0.4891 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.435e-05/0.379, allocations: 40 kB / 0.4891 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007876/0.3798, allocations: 0.5264 MB / 0.4896 GB, free: 15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3798, allocations: 0 / 0.4896 GB, free: 15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001238/0.3811, allocations: 339.9 kB / 0.4899 GB, free: 14.67 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001594/0.3827, allocations: 453.7 kB / 0.4904 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004378/0.387, allocations: 1.895 MB / 0.4922 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.387, allocations: 8.062 kB / 0.4922 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002339/0.3894, allocations: 1.016 MB / 0.4932 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.3906, allocations: 188.5 kB / 0.4934 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006304/0.3969, allocations: 3.149 MB / 0.4965 GB, free: 7.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008578/0.3977, allocations: 0.598 MB / 0.4971 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008959/0.3986, allocations: 168 kB / 0.4972 GB, free: 7.094 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004463/0.3991, allocations: 79.44 kB / 0.4973 GB, free: 7.016 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3991, allocations: 0 / 0.4973 GB, free: 7.016 MB / 414.1 MB Notification: Performance of Templates: time 0.03687/0.436, allocations: 20.06 MB / 0.5169 GB, free: 3.141 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] 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.327630126848817]