Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001686, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002089/0.002089, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.496/1.496, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 59.89 kB / 359 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.286, allocations: 50.55 MB / 409.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01192/0.298, allocations: 9.393 MB / 419 MB, free: 8.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005389/0.3034, allocations: 2.442 MB / 421.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.3047, allocations: 27.94 kB / 421.4 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.3058, allocations: 344.9 kB / 421.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00159/0.3074, allocations: 0.4957 MB / 422.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.3089, allocations: 0.6516 MB / 422.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003217/0.3121, allocations: 2.364 MB / 425.3 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.3139, allocations: 1.115 MB / 426.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001557/0.3155, allocations: 0.8607 MB / 427.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.3167, allocations: 0.8949 MB / 428.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003583/0.3171, allocations: 280 kB / 428.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005769/0.3177, allocations: 332 kB / 428.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005156/0.3182, allocations: 0.5065 MB / 429.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.3192, allocations: 0.9803 MB / 430.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003825/0.3231, allocations: 3.41 MB / 433.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3231, allocations: 0 / 433.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3231, allocations: 3.938 kB / 433.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.238e-05/0.3232, allocations: 0 / 433.6 MB, free: 9.223 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.004215/0.3274, allocations: 1.992 MB / 435.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3275, allocations: 8.031 kB / 435.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003829/0.3278, allocations: 195.8 kB / 435.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.3292, allocations: 0.858 MB / 436.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/0.3296, allocations: 232.7 kB / 436.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/0.3298, allocations: 163.9 kB / 437.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/0.3332, allocations: 1.671 MB / 438.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.63e-05/0.3333, allocations: 11.95 kB / 438.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.3334, allocations: 64 kB / 438.8 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-05/0.3335, allocations: 36 kB / 438.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003564/0.3371, allocations: 1.527 MB / 440.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.3473, allocations: 5.847 MB / 446.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002248/0.3496, allocations: 0.929 MB / 447.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.3507, allocations: 0.5083 MB / 447.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-05/0.3508, allocations: 9 kB / 447.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.3521, allocations: 0.6489 MB / 448.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.465e-06/0.3522, allocations: 0 / 448.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03661/0.3888, allocations: 8.828 MB / 457.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002495/0.3891, allocations: 295.7 kB / 457.4 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.3903, allocations: 0.8053 MB / 458.3 MB, free: 15.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.3905, allocations: 57.69 kB / 458.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006424/0.3911, allocations: 0.6799 MB / 459 MB, free: 15.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004091/0.3916, allocations: 432.3 kB / 459.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000506/0.3921, allocations: 243.5 kB / 459.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002585/0.3923, allocations: 418.7 kB / 460.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/0.3945, allocations: 0.7887 MB / 460.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/0.3969, allocations: 1.111 MB / 462 MB, free: 12.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003958/0.4009, allocations: 1.6 MB / 463.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.4009, allocations: 0 / 463.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005192/0.4061, allocations: 2.037 MB / 465.6 MB, free: 8.375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.4062, allocations: 11.98 kB / 465.6 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.4062, allocations: 8.062 kB / 465.6 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/0.4067, allocations: 214.5 kB / 465.8 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.4084, allocations: 347.5 kB / 466.2 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/0.4132, allocations: 4.847 MB / 471 MB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.4149, allocations: 163.9 kB / 471.2 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.4151, allocations: 55.92 kB / 471.2 MB, free: 2.316 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: 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.0007647/0.4158, allocations: 403 kB / 471.6 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002209/0.4161, allocations: 111.3 kB / 471.7 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002915/0.4164, allocations: 138.1 kB / 471.9 MB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.4164, allocations: 12.14 kB / 471.9 MB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.4164, allocations: 7.984 kB / 471.9 MB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4164, allocations: 3.984 kB / 471.9 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008415/0.4248, allocations: 4.349 MB / 476.2 MB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.4249, allocations: 8 kB / 476.2 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.4261, allocations: 268.3 kB / 476.5 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005675/0.4267, allocations: 273.5 kB / 476.8 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.339e-05/0.4268, allocations: 39.98 kB / 476.8 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002127/0.4289, allocations: 2.205 MB / 479 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/0.4289, allocations: 15.94 kB / 479 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005297/0.4342, allocations: 2.393 MB / 481.4 MB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006219/0.4349, allocations: 328.3 kB / 481.7 MB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.4351, allocations: 51.98 kB / 481.8 MB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.4362, allocations: 139.8 kB / 481.9 MB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00037/0.4366, allocations: 168.2 kB / 482.1 MB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.76e-05/0.4367, allocations: 43.98 kB / 482.1 MB, free: 6.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008487/0.4375, allocations: 0.5497 MB / 482.7 MB, free: 6.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4375, allocations: 0 / 482.7 MB, free: 6.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001253/0.4388, allocations: 339.9 kB / 483 MB, free: 5.977 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: 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.001485/0.4403, allocations: 421.3 kB / 483.4 MB, free: 5.688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004922/0.4452, allocations: 2.015 MB / 485.4 MB, free: 3.637 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.4453, allocations: 0 / 485.4 MB, free: 3.637 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002575/0.4478, allocations: 1.032 MB / 486.5 MB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.4494, allocations: 207.1 kB / 486.7 MB, free: 2.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006378/0.4558, allocations: 3.144 MB / 489.8 MB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009768/0.4568, allocations: 1.186 MB / 491 MB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009296/0.4578, allocations: 176.4 kB / 491.2 MB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000434/0.4582, allocations: 87.42 kB / 491.3 MB, free: 13.6 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4582, allocations: 0 / 491.3 MB, free: 13.6 MB / 414.1 MB Notification: Performance of Templates: time 0.03556/0.4938, allocations: 19.2 MB / 0.4985 GB, free: 10.53 MB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches