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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001833/0.001833, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.00237/0.00237, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.503/1.503, allocations: 230.5 MB / 258.1 MB, free: 8.129 MB / 206.1 MB " [Timeout remaining time 178] 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=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.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=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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "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.00202/0.00202, allocations: 71.83 kB / 378.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2645, allocations: 53.31 MB / 432.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01349/0.278, allocations: 9.469 MB / 441.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005701/0.2837, allocations: 2.461 MB / 444 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001827/0.2855, allocations: 31.88 kB / 444 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.287, allocations: 341 kB / 444.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002192/0.2892, allocations: 0.5114 MB / 444.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001781/0.2909, allocations: 0.6515 MB / 445.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003616/0.2946, allocations: 2.368 MB / 447.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001786/0.2963, allocations: 0.7404 MB / 448.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.2981, allocations: 0.8802 MB / 449.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.2998, allocations: 0.9027 MB / 450.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006931/0.3005, allocations: 276 kB / 450.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000912/0.3014, allocations: 328 kB / 451 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007029/0.3021, allocations: 0.5142 MB / 451.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.3037, allocations: 0.9842 MB / 452.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004149/0.3078, allocations: 3.405 MB / 455.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3078, allocations: 0 / 455.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3078, allocations: 0 / 455.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.845e-05/0.3079, allocations: 0 / 455.9 MB, free: 15.38 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.004641/0.3125, allocations: 1.996 MB / 457.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3126, allocations: 8.922 kB / 457.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003544/0.3129, allocations: 191.8 kB / 458.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.3144, allocations: 0.8542 MB / 458.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003066/0.3147, allocations: 232.7 kB / 459.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00026/0.315, allocations: 167.9 kB / 459.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003306/0.3183, allocations: 1.671 MB / 461 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.767e-05/0.3183, allocations: 15.94 kB / 461 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/0.3185, allocations: 60 kB / 461.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/0.3185, allocations: 40 kB / 461.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003428/0.3219, allocations: 1.523 MB / 462.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.332, allocations: 5.839 MB / 468.5 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.3342, allocations: 0.897 MB / 469.4 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.3353, allocations: 484.9 kB / 469.8 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.403e-05/0.3354, allocations: 9 kB / 469.9 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001358/0.3367, allocations: 0.645 MB / 470.5 MB, free: 352 kB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.565e-06/0.3367, allocations: 0 / 470.5 MB, free: 352 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03586/0.3726, allocations: 8.815 MB / 479.3 MB, free: 7.402 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/0.3728, allocations: 299.7 kB / 479.6 MB, free: 7.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.374, allocations: 0.8053 MB / 480.4 MB, free: 6.223 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000155/0.3742, allocations: 53.7 kB / 480.5 MB, free: 6.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006464/0.3748, allocations: 0.68 MB / 481.1 MB, free: 5.473 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004539/0.3753, allocations: 440.4 kB / 481.6 MB, free: 5.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005146/0.3758, allocations: 247.5 kB / 481.8 MB, free: 4.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002369/0.376, allocations: 406.7 kB / 482.2 MB, free: 4.387 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002081/0.3781, allocations: 0.7848 MB / 483 MB, free: 3.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002408/0.3805, allocations: 1.115 MB / 484.1 MB, free: 2.379 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003895/0.3844, allocations: 1.607 MB / 485.7 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.3844, allocations: 0 / 485.7 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005055/0.3895, allocations: 2.03 MB / 487.8 MB, free: 14.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.3895, allocations: 11.94 kB / 487.8 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.3895, allocations: 12 kB / 487.8 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005182/0.39, allocations: 214.4 kB / 488 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.3918, allocations: 355.5 kB / 488.3 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004767/0.3966, allocations: 4.843 MB / 493.2 MB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.3984, allocations: 167.9 kB / 493.3 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.3986, allocations: 44 kB / 493.4 MB, free: 8.574 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.0008008/0.3994, allocations: 399.1 kB / 493.8 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/0.3996, allocations: 111.3 kB / 493.9 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.3998, allocations: 138.1 kB / 494 MB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3999, allocations: 12 kB / 494 MB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.3999, allocations: 0 / 494 MB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.3999, allocations: 11.91 kB / 494 MB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008334/0.4082, allocations: 4.353 MB / 498.4 MB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.4082, allocations: 8 kB / 498.4 MB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.4094, allocations: 268.5 kB / 498.7 MB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005512/0.41, allocations: 277.5 kB / 498.9 MB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.941e-05/0.4101, allocations: 35.98 kB / 499 MB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002027/0.4121, allocations: 2.193 MB / 0.4894 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.481e-05/0.4121, allocations: 15.94 kB / 0.4894 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005167/0.4173, allocations: 2.397 MB / 0.4918 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006819/0.4179, allocations: 324.3 kB / 0.4921 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.4181, allocations: 48 kB / 0.4921 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.4192, allocations: 143.8 kB / 0.4923 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/0.4196, allocations: 168.2 kB / 0.4924 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.845e-05/0.4197, allocations: 47.98 kB / 0.4925 GB, free: 13.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008531/0.4206, allocations: 0.542 MB / 0.493 GB, free: 12.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4206, allocations: 0 / 0.493 GB, free: 12.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001313/0.4219, allocations: 343.9 kB / 0.4933 GB, free: 12.25 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.001469/0.4233, allocations: 436.5 kB / 0.4937 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004443/0.4278, allocations: 1.882 MB / 0.4956 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.4278, allocations: 4 kB / 0.4956 GB, free: 10.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002364/0.4302, allocations: 1.006 MB / 0.4966 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.4316, allocations: 203.1 kB / 0.4968 GB, free: 8.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006449/0.438, allocations: 3.146 MB / 0.4998 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.4391, allocations: 1.182 MB / 0.501 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009191/0.44, allocations: 176.4 kB / 0.5012 GB, free: 4.121 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.4404, allocations: 83.44 kB / 0.5012 GB, free: 4.039 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4404, allocations: 0 / 0.5012 GB, free: 4.039 MB / 414.1 MB Notification: Performance of Templates: time 0.03849/0.4789, allocations: 19.9 MB / 0.5207 GB, free: 268 kB / 430.1 MB " [Timeout remaining time 660] 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.511539221741259]