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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001332, allocations: 109.8 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 207.8 kB / 19.25 MB, free: 3.938 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.45/1.45, allocations: 227.7 MB / 247.7 MB, free: 10.38 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.001986/0.001986, allocations: 59.55 kB / 307.9 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1164, allocations: 50.54 MB / 358.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01228/0.1287, allocations: 9.386 MB / 367.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005353/0.1341, allocations: 2.446 MB / 370.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.1356, allocations: 31.88 kB / 370.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.1367, allocations: 348.9 kB / 370.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001808/0.1385, allocations: 499.7 kB / 371.1 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.1399, allocations: 0.6593 MB / 371.8 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1643/0.3042, allocations: 2.349 MB / 374.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.306, allocations: 1.111 MB / 375.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.3075, allocations: 0.857 MB / 376.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.3087, allocations: 0.8981 MB / 377 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003806/0.3091, allocations: 277.6 kB / 377.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005408/0.3097, allocations: 330.2 kB / 377.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004454/0.3101, allocations: 0.508 MB / 378.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008433/0.311, allocations: 0.9848 MB / 379.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003718/0.3147, allocations: 3.356 MB / 382.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.3147, allocations: 7.594 kB / 382.5 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3147, allocations: 0 / 382.5 MB, free: 8.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.639e-05/0.3148, allocations: 0 / 382.5 MB, free: 8.156 MB / 302.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.003942/0.3188, allocations: 1.948 MB / 384.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3188, allocations: 9.656 kB / 384.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000356/0.3192, allocations: 180.5 kB / 384.6 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.3203, allocations: 0.8445 MB / 385.4 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.3205, allocations: 234.5 kB / 385.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.3208, allocations: 157 kB / 385.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.3237, allocations: 1.676 MB / 387.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-05/0.3238, allocations: 6.344 kB / 387.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.324, allocations: 70.64 kB / 387.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.969e-05/0.324, allocations: 36.19 kB / 387.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003244/0.3272, allocations: 1.527 MB / 389.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008222/0.3355, allocations: 5.893 MB / 395 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/0.3376, allocations: 0.9356 MB / 396 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.3387, allocations: 0.5133 MB / 396.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.457e-05/0.3388, allocations: 15.44 kB / 396.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.3401, allocations: 0.6416 MB / 397.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.226e-06/0.3401, allocations: 4 kB / 397.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03588/0.376, allocations: 8.788 MB / 405.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002164/0.3763, allocations: 299.7 kB / 406.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.3777, allocations: 0.8013 MB / 407 MB, free: 7.738 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001823/0.3779, allocations: 53.7 kB / 407.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006491/0.3785, allocations: 0.6645 MB / 407.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004348/0.379, allocations: 416 kB / 408.1 MB, free: 6.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005121/0.3795, allocations: 247.4 kB / 408.4 MB, free: 6.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002509/0.3797, allocations: 414.8 kB / 408.8 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/0.3818, allocations: 0.7809 MB / 409.6 MB, free: 5.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002377/0.3842, allocations: 1.106 MB / 410.7 MB, free: 3.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003939/0.3881, allocations: 1.609 MB / 412.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.3882, allocations: 2.344 kB / 412.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00524/0.3934, allocations: 2.026 MB / 414.3 MB, free: 272 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.3935, allocations: 8 kB / 414.3 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.3935, allocations: 8 kB / 414.3 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005012/0.394, allocations: 226.1 kB / 414.5 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.3958, allocations: 352.4 kB / 414.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004899/0.4007, allocations: 4.841 MB / 419.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.4026, allocations: 163.9 kB / 419.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001676/0.4028, allocations: 52 kB / 419.9 MB, free: 10.24 MB / 334.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.0008733/0.4037, allocations: 391.9 kB / 420.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002678/0.404, allocations: 106.8 kB / 420.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000287/0.4043, allocations: 130.1 kB / 420.6 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.4043, allocations: 12 kB / 420.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.4043, allocations: 4 kB / 420.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.4043, allocations: 7.969 kB / 420.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008754/0.4131, allocations: 4.354 MB / 424.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.4132, allocations: 8 kB / 424.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.4144, allocations: 261 kB / 425.2 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005846/0.415, allocations: 285.8 kB / 425.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.867e-05/0.4151, allocations: 43.98 kB / 425.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.4173, allocations: 2.205 MB / 427.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/0.4173, allocations: 15.47 kB / 427.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00539/0.4227, allocations: 2.391 MB / 430.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007843/0.4235, allocations: 323.7 kB / 430.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002429/0.4238, allocations: 44 kB / 430.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.425, allocations: 143.3 kB / 430.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003855/0.4254, allocations: 174.8 kB / 430.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.974e-05/0.4255, allocations: 43.98 kB / 430.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009034/0.4264, allocations: 0.5381 MB / 431.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4264, allocations: 0 / 431.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001424/0.4278, allocations: 348 kB / 431.7 MB, free: 14.09 MB / 350.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.001495/0.4293, allocations: 419.4 kB / 432.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005365/0.4347, allocations: 2.053 MB / 434.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.4347, allocations: 0 / 434.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002307/0.437, allocations: 1.005 MB / 435.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.4385, allocations: 204.7 kB / 435.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006343/0.4448, allocations: 3.194 MB / 438.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.4459, allocations: 1.186 MB / 439.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00056/0.4464, allocations: 91.42 kB / 439.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4465, allocations: 0 / 439.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of Templates: time 0.04688/0.4933, allocations: 36.62 MB / 476.5 MB, free: 1.344 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (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) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/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) Reference file matches