Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001389/0.001389, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 87.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.148e-05/2.191e-05, allocations: 0 / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3351, allocations: 47.57 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1536/0.4888, allocations: 93.03 MB / 455.4 MB, free: 9.254 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003416/0.4892, allocations: 83.95 kB / 455.5 MB, free: 9.172 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.152/0.6412, allocations: 37.89 MB / 493.3 MB, free: 3.289 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6413, allocations: 0 / 493.3 MB, free: 3.289 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0001286/0.6414, allocations: 35.94 kB / 493.4 MB, free: 3.254 MB / 379.1 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.007152/0.6486, allocations: 1.514 MB / 494.9 MB, free: 1.691 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.318e-05/0.6487, allocations: 8.031 kB / 494.9 MB, free: 1.684 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/0.65, allocations: 185.9 kB / 495.1 MB, free: 1.5 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003367/0.6535, allocations: 0.7944 MB / 495.9 MB, free: 0.6602 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007226/0.6542, allocations: 184.1 kB / 496.1 MB, free: 472 kB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008552/0.6551, allocations: 99.89 kB / 496.2 MB, free: 372 kB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007263/0.6624, allocations: 1.295 MB / 497.5 MB, free: 15.06 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00771/0.6702, allocations: 1.337 MB / 498.8 MB, free: 13.7 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001328/0.6704, allocations: 7.906 kB / 498.8 MB, free: 13.69 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005152/0.671, allocations: 3.938 kB / 498.8 MB, free: 13.69 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.158e-05/0.6711, allocations: 44 kB / 498.8 MB, free: 13.64 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02396/0.6951, allocations: 5.787 MB / 0.4928 GB, free: 7.648 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003537/0.6987, allocations: 0.7936 MB / 0.4936 GB, free: 6.84 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.7006, allocations: 460.5 kB / 0.494 GB, free: 6.387 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.7009, allocations: 12.91 kB / 0.494 GB, free: 6.371 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002406/0.7033, allocations: 0.5619 MB / 0.4946 GB, free: 5.766 MB / 395.1 MB Notification: Performance of pre-optimization done (n=92): time 7.013e-06/0.7034, allocations: 4 kB / 0.4946 GB, free: 5.762 MB / 395.1 MB Notification: Performance of matching and sorting (n=123): time 0.03349/0.7369, allocations: 5.331 MB / 0.4998 GB, free: 340 kB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2812/1.018, allocations: 304 kB / 0.5001 GB, free: 106.8 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/1.02, allocations: 0.603 MB / 0.5007 GB, free: 106.7 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003525/1.02, allocations: 33.08 kB / 0.5007 GB, free: 106.6 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006049/1.021, allocations: 0.6805 MB / 0.5014 GB, free: 106.4 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005602/1.021, allocations: 398.2 kB / 0.5017 GB, free: 106.2 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/1.021, allocations: 3.734 kB / 0.5017 GB, free: 106.2 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/1.022, allocations: 363.8 kB / 0.5021 GB, free: 105.9 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/1.023, allocations: 0.6169 MB / 0.5027 GB, free: 105.9 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001931/1.025, allocations: 0.9147 MB / 0.5036 GB, free: 105.6 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/1.027, allocations: 0.6103 MB / 0.5042 GB, free: 105.6 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/1.027, allocations: 1.969 kB / 0.5042 GB, free: 105.6 MB / 395.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004767/1.032, allocations: 1.574 MB / 0.5057 GB, free: 105.5 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/1.032, allocations: 8.375 kB / 0.5057 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.086e-05/1.032, allocations: 10.17 kB / 0.5057 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006125/1.033, allocations: 176.5 kB / 0.5059 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00346/1.036, allocations: 371.5 kB / 0.5063 GB, free: 105.5 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004485/1.041, allocations: 4.296 MB / 0.5105 GB, free: 101.8 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/1.044, allocations: 177.2 kB / 0.5106 GB, free: 101.8 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002839/1.044, allocations: 55.83 kB / 0.5107 GB, free: 101.8 MB / 395.1 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.0005422/1.045, allocations: 148.4 kB / 0.5108 GB, free: 101.7 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000328/1.045, allocations: 100.2 kB / 0.5109 GB, free: 101.7 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004052/1.049, allocations: 1.4 MB / 0.5123 GB, free: 101.5 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.311e-05/1.049, allocations: 15.89 kB / 0.5123 GB, free: 101.5 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/1.049, allocations: 2.938 kB / 0.5123 GB, free: 101.5 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.299e-05/1.049, allocations: 8.484 kB / 0.5123 GB, free: 101.5 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/1.061, allocations: 3.941 MB / 0.5162 GB, free: 100.8 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.916e-05/1.061, allocations: 13.34 kB / 0.5162 GB, free: 100.8 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002308/1.063, allocations: 284.4 kB / 0.5164 GB, free: 100.8 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009143/1.064, allocations: 326.6 kB / 0.5168 GB, free: 100.8 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002237/1.064, allocations: 19.58 kB / 0.5168 GB, free: 100.8 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/1.066, allocations: 2.064 MB / 0.5188 GB, free: 99.08 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-05/1.066, allocations: 14.78 kB / 0.5188 GB, free: 99.08 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/1.071, allocations: 2.488 MB / 0.5212 GB, free: 97.19 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009362/1.072, allocations: 319.3 kB / 0.5215 GB, free: 96.95 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002908/1.073, allocations: 28.7 kB / 0.5216 GB, free: 96.94 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.074, allocations: 143.7 kB / 0.5217 GB, free: 96.94 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005644/1.075, allocations: 181.4 kB / 0.5219 GB, free: 96.9 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/1.075, allocations: 53.72 kB / 0.5219 GB, free: 96.89 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009049/1.076, allocations: 465.4 kB / 0.5224 GB, free: 96.66 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.076, allocations: 0 / 0.5224 GB, free: 96.66 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002183/1.078, allocations: 297.4 kB / 0.5227 GB, free: 96.66 MB / 395.1 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.0005402/1.079, allocations: 171.2 kB / 0.5228 GB, free: 96.56 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003657/1.083, allocations: 1.668 MB / 0.5244 GB, free: 95.61 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/1.083, allocations: 3.625 kB / 0.5244 GB, free: 95.61 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/1.085, allocations: 0.8565 MB / 0.5253 GB, free: 95.16 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/1.087, allocations: 135.2 kB / 0.5254 GB, free: 95.12 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007317/1.094, allocations: 2.437 MB / 0.5278 GB, free: 93.69 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008959/1.095, allocations: 1.207 MB / 0.529 GB, free: 92.96 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009364/1.096, allocations: 85.44 kB / 0.5291 GB, free: 92.95 MB / 395.1 MB Notification: Performance of SimCode: time 9.22e-07/1.096, allocations: 0 / 0.5291 GB, free: 92.95 MB / 395.1 MB Notification: Performance of Templates: time 0.04912/1.145, allocations: 33.71 MB / 0.562 GB, free: 77.06 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches