Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008296/0.0008293, allocations: 85.78 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.085e-05, allocations: 4 kB / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1308, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4932/0.6241, allocations: 95.8 MB / 483.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.6244, allocations: 93.62 kB / 483.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0908/0.7153, allocations: 38.7 MB / 0.5098 GB, free: 8.141 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7153, allocations: 4 kB / 0.5098 GB, free: 8.137 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.189e-05/0.7154, allocations: 28 kB / 0.5098 GB, free: 8.109 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.003012/0.7184, allocations: 1.515 MB / 0.5113 GB, free: 6.543 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.7185, allocations: 12.03 kB / 0.5113 GB, free: 6.531 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003663/0.7189, allocations: 181.9 kB / 0.5115 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.72, allocations: 0.7945 MB / 0.5123 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/0.7203, allocations: 184.1 kB / 0.5125 GB, free: 5.312 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.7205, allocations: 95.91 kB / 0.5126 GB, free: 5.219 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002307/0.7228, allocations: 1.295 MB / 0.5138 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.7252, allocations: 1.345 MB / 0.5151 GB, free: 2.551 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.734e-05/0.7253, allocations: 11.89 kB / 0.5151 GB, free: 2.539 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.7254, allocations: 0 / 0.5151 GB, free: 2.539 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.272e-05/0.7254, allocations: 40 kB / 0.5152 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009112/0.7346, allocations: 5.776 MB / 0.5208 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.7359, allocations: 0.8024 MB / 0.5216 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000625/0.7365, allocations: 452.7 kB / 0.522 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.741e-05/0.7366, allocations: 12.78 kB / 0.5221 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008862/0.7375, allocations: 0.5667 MB / 0.5226 GB, free: 10.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=92): time 2.645e-06/0.7375, allocations: 4 kB / 0.5226 GB, free: 10.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=123): time 0.01185/0.7494, allocations: 5.314 MB / 0.5278 GB, free: 5.203 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.7496, allocations: 300.1 kB / 0.5281 GB, free: 4.844 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008236/0.7504, allocations: 0.6089 MB / 0.5287 GB, free: 4.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.7505, allocations: 33.7 kB / 0.5287 GB, free: 4.191 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005028/0.751, allocations: 0.6507 MB / 0.5293 GB, free: 3.527 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003205/0.7513, allocations: 398.1 kB / 0.5297 GB, free: 3.133 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.7514, allocations: 0 / 0.5297 GB, free: 3.133 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.7516, allocations: 410.7 kB / 0.5301 GB, free: 2.723 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009073/0.7525, allocations: 0.6172 MB / 0.5307 GB, free: 2.105 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.7537, allocations: 0.9237 MB / 0.5316 GB, free: 1.066 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009648/0.7546, allocations: 0.6153 MB / 0.5322 GB, free: 468 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.7547, allocations: 0 / 0.5322 GB, free: 468 kB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002742/0.7574, allocations: 1.611 MB / 0.5338 GB, free: 14.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.7575, allocations: 11.95 kB / 0.5338 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.7575, allocations: 8.594 kB / 0.5338 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003799/0.7579, allocations: 182.5 kB / 0.534 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.7596, allocations: 371.4 kB / 0.5343 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003433/0.763, allocations: 4.292 MB / 0.5385 GB, free: 9.613 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.7647, allocations: 179.9 kB / 0.5387 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.7649, allocations: 59.98 kB / 0.5388 GB, free: 9.379 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003604/0.7653, allocations: 156.6 kB / 0.5389 GB, free: 9.223 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.7655, allocations: 94.88 kB / 0.539 GB, free: 9.129 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.7682, allocations: 1.408 MB / 0.5404 GB, free: 7.699 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.7682, allocations: 12 kB / 0.5404 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.7682, allocations: 0 / 0.5404 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.7682, allocations: 7.984 kB / 0.5404 GB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006964/0.7752, allocations: 3.948 MB / 0.5443 GB, free: 3.559 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.7752, allocations: 8 kB / 0.5443 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.7764, allocations: 280.5 kB / 0.5445 GB, free: 3.277 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005319/0.7769, allocations: 325.5 kB / 0.5448 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.103e-05/0.777, allocations: 23.98 kB / 0.5449 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/0.7787, allocations: 2.051 MB / 0.5469 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.7787, allocations: 11.94 kB / 0.5469 GB, free: 0.7266 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2427/1.021, allocations: 2.487 MB / 0.5493 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006198/1.022, allocations: 324.8 kB / 0.5496 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/1.022, allocations: 28.3 kB / 0.5496 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/1.023, allocations: 136.9 kB / 0.5498 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003897/1.024, allocations: 189.2 kB / 0.55 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.99e-05/1.024, allocations: 46.69 kB / 0.55 GB, free: 116.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005997/1.024, allocations: 461.6 kB / 0.5504 GB, free: 116.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.024, allocations: 0 / 0.5504 GB, free: 116.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001268/1.026, allocations: 302.5 kB / 0.5507 GB, free: 116.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003171/1.026, allocations: 174.5 kB / 0.5509 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00246/1.029, allocations: 1.672 MB / 0.5525 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.029, allocations: 4.938 kB / 0.5525 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/1.03, allocations: 0.8775 MB / 0.5534 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/1.031, allocations: 135.7 kB / 0.5535 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005111/1.036, allocations: 2.382 MB / 0.5558 GB, free: 115.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/1.037, allocations: 1.21 MB / 0.557 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001158/1.039, allocations: 156.7 kB / 0.5572 GB, free: 114.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003875/1.039, allocations: 78.33 kB / 0.5572 GB, free: 114.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.404e-06/1.039, allocations: 7.656 kB / 0.5573 GB, free: 114.3 MB / 426.7 MB Notification: Performance of Templates: time 0.02876/1.068, allocations: 15.71 MB / 0.5726 GB, free: 113.6 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches