Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001844/0.001844, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.661/1.661, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008828/0.000883, allocations: 86.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.125e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 47.58 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3879/0.4933, allocations: 93.27 MB / 456.3 MB, free: 2.566 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.4937, allocations: 84.75 kB / 456.4 MB, free: 2.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08908/0.5828, allocations: 37.89 MB / 494.3 MB, free: 2.387 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5829, allocations: 0 / 494.3 MB, free: 2.387 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001032/0.583, allocations: 36.22 kB / 494.4 MB, free: 2.352 MB / 362.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.003383/0.5864, allocations: 1.511 MB / 495.9 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.5865, allocations: 8.031 kB / 495.9 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004603/0.5869, allocations: 185.9 kB / 496.1 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.5882, allocations: 0.7906 MB / 496.9 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/0.5885, allocations: 192.1 kB / 497 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.5887, allocations: 95.91 kB / 497.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002424/0.5911, allocations: 1.295 MB / 498.4 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002469/0.5936, allocations: 1.337 MB / 499.8 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/0.5937, allocations: 15.89 kB / 499.8 MB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.5938, allocations: 4 kB / 499.8 MB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.5939, allocations: 36 kB / 499.8 MB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/0.6041, allocations: 5.787 MB / 0.4938 GB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.6055, allocations: 0.7975 MB / 0.4945 GB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006574/0.6062, allocations: 448.6 kB / 0.495 GB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.401e-05/0.6063, allocations: 20.84 kB / 0.495 GB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009101/0.6072, allocations: 0.5697 MB / 0.4955 GB, free: 4.852 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 4.118e-06/0.6072, allocations: 0 / 0.4955 GB, free: 4.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.01248/0.6197, allocations: 5.323 MB / 0.5007 GB, free: 15.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.6199, allocations: 304 kB / 0.501 GB, free: 15.06 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008084/0.6207, allocations: 0.6128 MB / 0.5016 GB, free: 14.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.94e-05/0.6209, allocations: 29.7 kB / 0.5017 GB, free: 14.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005131/0.6214, allocations: 0.6585 MB / 0.5023 GB, free: 13.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003129/0.6217, allocations: 394.1 kB / 0.5027 GB, free: 13.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.6218, allocations: 0 / 0.5027 GB, free: 13.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.622, allocations: 402.7 kB / 0.5031 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009355/0.6229, allocations: 0.6249 MB / 0.5037 GB, free: 12.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.6241, allocations: 0.9158 MB / 0.5046 GB, free: 11.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009658/0.625, allocations: 0.6077 MB / 0.5052 GB, free: 10.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.6251, allocations: 4 kB / 0.5052 GB, free: 10.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002586/0.6276, allocations: 1.616 MB / 0.5067 GB, free: 9.047 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.6277, allocations: 8 kB / 0.5067 GB, free: 9.039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.6277, allocations: 8 kB / 0.5068 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00037/0.6281, allocations: 174.4 kB / 0.5069 GB, free: 8.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.6298, allocations: 375.7 kB / 0.5073 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003399/0.6332, allocations: 4.304 MB / 0.5115 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.6347, allocations: 179.8 kB / 0.5116 GB, free: 3.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.6349, allocations: 55.98 kB / 0.5117 GB, free: 3.598 MB / 394.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.0003436/0.6352, allocations: 138.9 kB / 0.5118 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.6354, allocations: 98.88 kB / 0.5119 GB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002551/0.638, allocations: 1.412 MB / 0.5133 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.638, allocations: 12 kB / 0.5133 GB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.638, allocations: 0 / 0.5133 GB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.638, allocations: 3.984 kB / 0.5133 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006779/0.6448, allocations: 3.952 MB / 0.5172 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.6448, allocations: 8 kB / 0.5172 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.646, allocations: 287.9 kB / 0.5175 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005238/0.6466, allocations: 313.5 kB / 0.5178 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.014e-05/0.6467, allocations: 23.98 kB / 0.5178 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/0.6483, allocations: 2.066 MB / 0.5198 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/0.6483, allocations: 15.94 kB / 0.5198 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.6516, allocations: 2.484 MB / 0.5222 GB, free: 8.074 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.6521, allocations: 319.7 kB / 0.5226 GB, free: 7.742 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/0.6523, allocations: 27.98 kB / 0.5226 GB, free: 7.715 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.6533, allocations: 139.9 kB / 0.5227 GB, free: 7.578 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/0.6537, allocations: 188.3 kB / 0.5229 GB, free: 7.395 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.135e-05/0.6538, allocations: 43.98 kB / 0.5229 GB, free: 7.352 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006767/0.6545, allocations: 463.2 kB / 0.5234 GB, free: 6.898 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6545, allocations: 0 / 0.5234 GB, free: 6.898 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001343/0.6558, allocations: 300 kB / 0.5237 GB, free: 6.605 MB / 410.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.0003249/0.6562, allocations: 162.9 kB / 0.5238 GB, free: 6.438 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.6587, allocations: 1.671 MB / 0.5254 GB, free: 4.734 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.6587, allocations: 4.125 kB / 0.5255 GB, free: 4.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002474/0.6612, allocations: 0.8774 MB / 0.5263 GB, free: 3.848 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.6628, allocations: 138.7 kB / 0.5264 GB, free: 3.715 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007524/0.6704, allocations: 2.395 MB / 0.5288 GB, free: 1.168 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2438/0.9142, allocations: 1.2 MB / 0.53 GB, free: 114.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001374/0.9156, allocations: 157.1 kB / 0.5301 GB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.916, allocations: 76.58 kB / 0.5302 GB, free: 114.8 MB / 410.7 MB Notification: Performance of SimCode: time 8.01e-07/0.916, allocations: 0 / 0.5302 GB, free: 114.8 MB / 410.7 MB Notification: Performance of Templates: time 0.03647/0.9525, allocations: 15.72 MB / 0.5455 GB, free: 114.3 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches