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.001309/0.001309, allocations: 105.2 kB / 19.8 MB, free: 2.516 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.001515/0.001515, allocations: 213.8 kB / 23 MB, free: 5.609 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.481/1.481, allocations: 230.2 MB / 256.2 MB, free: 8.531 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.002044/0.002044, allocations: 63.89 kB / 376.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2597, allocations: 53.32 MB / 429.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01146/0.2711, allocations: 9.479 MB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004878/0.276, allocations: 2.454 MB / 441.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.2773, allocations: 35.88 kB / 441.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.2785, allocations: 344.9 kB / 442.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001642/0.2801, allocations: 0.5036 MB / 442.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.2814, allocations: 0.667 MB / 443.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002674/0.284, allocations: 2.368 MB / 445.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.2852, allocations: 0.7365 MB / 446.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001422/0.2866, allocations: 0.8724 MB / 447.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.288, allocations: 0.9065 MB / 448.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003478/0.2883, allocations: 276 kB / 448.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005023/0.2888, allocations: 328 kB / 448.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004695/0.2893, allocations: 0.5143 MB / 449.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.2903, allocations: 0.988 MB / 450.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003473/0.2938, allocations: 3.408 MB / 453.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.2938, allocations: 0 / 453.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2938, allocations: 0 / 453.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.838e-05/0.2938, allocations: 0 / 453.7 MB, free: 15.56 MB / 366.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.003787/0.2976, allocations: 1.992 MB / 455.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2977, allocations: 8.031 kB / 455.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000315/0.298, allocations: 191.8 kB / 455.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.2993, allocations: 0.862 MB / 456.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/0.2996, allocations: 232.7 kB / 456.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002428/0.2998, allocations: 163.9 kB / 457.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003247/0.3031, allocations: 1.675 MB / 458.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.777e-05/0.3031, allocations: 3.953 kB / 458.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/0.3033, allocations: 72 kB / 458.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.311e-05/0.3033, allocations: 36 kB / 458.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003334/0.3066, allocations: 1.523 MB / 460.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009616/0.3163, allocations: 5.835 MB / 466.2 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.3184, allocations: 0.8884 MB / 467.1 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.3194, allocations: 480.5 kB / 467.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.161e-05/0.3195, allocations: 13 kB / 467.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001366/0.3209, allocations: 0.645 MB / 468.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.184e-06/0.3209, allocations: 0 / 468.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03854/0.3594, allocations: 8.817 MB / 477.1 MB, free: 7.598 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002065/0.3596, allocations: 299.8 kB / 477.4 MB, free: 7.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.3614, allocations: 0.8053 MB / 478.2 MB, free: 6.418 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/0.3616, allocations: 61.69 kB / 478.2 MB, free: 6.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007432/0.3623, allocations: 0.6761 MB / 478.9 MB, free: 5.664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005513/0.3629, allocations: 432.3 kB / 479.3 MB, free: 5.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007228/0.3636, allocations: 243.5 kB / 479.6 MB, free: 4.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002876/0.3639, allocations: 410.7 kB / 480 MB, free: 4.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.3663, allocations: 0.7887 MB / 480.7 MB, free: 3.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002244/0.3686, allocations: 1.115 MB / 481.9 MB, free: 2.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003579/0.3721, allocations: 1.599 MB / 483.5 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.3721, allocations: 8 kB / 483.5 MB, free: 0.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.007014/0.3792, allocations: 2.026 MB / 485.5 MB, free: 14.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.512e-05/0.3792, allocations: 11.98 kB / 485.5 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.3792, allocations: 8 kB / 485.5 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006613/0.3799, allocations: 222.4 kB / 485.7 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002281/0.3822, allocations: 347.5 kB / 486.1 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006169/0.3883, allocations: 4.855 MB / 490.9 MB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.3907, allocations: 159.9 kB / 491.1 MB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/0.3908, allocations: 51.98 kB / 491.1 MB, free: 8.766 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: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,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.001085/0.3919, allocations: 391.2 kB / 491.5 MB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.3922, allocations: 115.3 kB / 491.6 MB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003321/0.3926, allocations: 134.1 kB / 491.8 MB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.3926, allocations: 12 kB / 491.8 MB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3926, allocations: 4 kB / 491.8 MB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/0.3926, allocations: 11.92 kB / 491.8 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.4044, allocations: 4.354 MB / 496.1 MB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.4044, allocations: 8 kB / 496.1 MB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/0.4062, allocations: 255.6 kB / 496.4 MB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000591/0.4068, allocations: 285.9 kB / 496.7 MB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.656e-05/0.4068, allocations: 35.98 kB / 496.7 MB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002294/0.4091, allocations: 2.201 MB / 498.9 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/0.4092, allocations: 15.94 kB / 498.9 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005113/0.4143, allocations: 2.393 MB / 0.4896 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006162/0.4149, allocations: 328.3 kB / 0.4899 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.4151, allocations: 51.98 kB / 0.4899 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4161, allocations: 139.8 kB / 0.4901 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004231/0.4165, allocations: 168.2 kB / 0.4902 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.733e-05/0.4166, allocations: 47.98 kB / 0.4903 GB, free: 13.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009037/0.4175, allocations: 0.542 MB / 0.4908 GB, free: 12.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4175, allocations: 0 / 0.4908 GB, free: 12.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001293/0.4188, allocations: 335.9 kB / 0.4911 GB, free: 12.44 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: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.001456/0.4203, allocations: 414.1 kB / 0.4915 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004386/0.4247, allocations: 1.891 MB / 0.4934 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.4247, allocations: 7.938 kB / 0.4934 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.427, allocations: 1.004 MB / 0.4944 GB, free: 9.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/0.4283, allocations: 205.5 kB / 0.4945 GB, free: 8.996 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006296/0.4346, allocations: 3.153 MB / 0.4976 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009319/0.4355, allocations: 1.182 MB / 0.4988 GB, free: 4.469 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008227/0.4363, allocations: 172.4 kB / 0.4989 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004204/0.4368, allocations: 87.42 kB / 0.499 GB, free: 4.211 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4368, allocations: 0 / 0.499 GB, free: 4.211 MB / 414.1 MB Notification: Performance of Templates: time 0.03624/0.473, allocations: 19.88 MB / 0.5184 GB, free: 452 kB / 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.24843368306756]