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.001516/0.001515, allocations: 182.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001098, allocations: 98.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.019e-05, allocations: 0 / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09776, allocations: 47.57 MB / 369.1 MB, free: 2.188 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4258/0.5236, allocations: 93.68 MB / 462.8 MB, free: 15.65 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.524, allocations: 83.39 kB / 462.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1534/0.6774, allocations: 38.16 MB / 0.4893 GB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6775, allocations: 4 kB / 0.4893 GB, free: 11.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001285/0.6776, allocations: 36 kB / 0.4893 GB, free: 11.11 MB / 378.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.005647/0.6833, allocations: 1.512 MB / 0.4908 GB, free: 9.551 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.6834, allocations: 8.031 kB / 0.4908 GB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009317/0.6843, allocations: 185.9 kB / 0.491 GB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002227/0.6866, allocations: 0.7906 MB / 0.4918 GB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005056/0.6871, allocations: 236.1 kB / 0.492 GB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005273/0.6876, allocations: 159.9 kB / 0.4921 GB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005234/0.6929, allocations: 1.569 MB / 0.4937 GB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.097e-05/0.693, allocations: 7.906 kB / 0.4937 GB, free: 6.508 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002664/0.6933, allocations: 64 kB / 0.4937 GB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.764e-05/0.6934, allocations: 40 kB / 0.4938 GB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004985/0.6984, allocations: 1.367 MB / 0.4951 GB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01807/0.7165, allocations: 6.053 MB / 0.501 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00253/0.7191, allocations: 0.8439 MB / 0.5018 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.7205, allocations: 480.7 kB / 0.5023 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.7207, allocations: 12.78 kB / 0.5023 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001838/0.7225, allocations: 0.5947 MB / 0.5029 GB, free: 12.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 8.156e-06/0.7226, allocations: 0 / 0.5029 GB, free: 12.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.02269/0.7453, allocations: 5.577 MB / 0.5083 GB, free: 7.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.7455, allocations: 295.7 kB / 0.5086 GB, free: 6.734 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.7472, allocations: 0.6873 MB / 0.5093 GB, free: 6.039 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000413/0.7476, allocations: 53.7 kB / 0.5093 GB, free: 5.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009483/0.7486, allocations: 0.6766 MB / 0.51 GB, free: 5.293 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007862/0.7494, allocations: 414 kB / 0.5104 GB, free: 4.883 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.7496, allocations: 32 kB / 0.5104 GB, free: 4.852 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.7499, allocations: 370.7 kB / 0.5108 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/0.752, allocations: 0.6406 MB / 0.5114 GB, free: 3.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00226/0.7543, allocations: 0.9666 MB / 0.5124 GB, free: 2.766 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001826/0.7561, allocations: 0.6285 MB / 0.513 GB, free: 2.141 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.7561, allocations: 4 kB / 0.513 GB, free: 2.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004869/0.761, allocations: 1.69 MB / 0.5146 GB, free: 440 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.7611, allocations: 15.11 kB / 0.5146 GB, free: 428 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.435e-05/0.7612, allocations: 8 kB / 0.5146 GB, free: 420 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006152/0.7618, allocations: 174.4 kB / 0.5148 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003432/0.7652, allocations: 371.7 kB / 0.5152 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005601/0.7709, allocations: 4.455 MB / 0.5195 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/0.7739, allocations: 199.9 kB / 0.5197 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/0.7742, allocations: 56.08 kB / 0.5198 GB, free: 10.76 MB / 410.7 MB 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.0005247/0.7747, allocations: 190.9 kB / 0.5199 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003489/0.7751, allocations: 110.7 kB / 0.52 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004583/0.7797, allocations: 1.495 MB / 0.5215 GB, free: 8.941 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.568e-05/0.7798, allocations: 19.98 kB / 0.5215 GB, free: 8.922 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.7798, allocations: 4 kB / 0.5215 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/0.7798, allocations: 3.984 kB / 0.5215 GB, free: 8.914 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.7922, allocations: 4.241 MB / 0.5257 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.137e-05/0.7923, allocations: 11.94 kB / 0.5257 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002323/0.7946, allocations: 283.9 kB / 0.526 GB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009969/0.7956, allocations: 321.5 kB / 0.5263 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.7958, allocations: 40 kB / 0.5263 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002399/0.7982, allocations: 2.091 MB / 0.5283 GB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.945e-05/0.7983, allocations: 11.94 kB / 0.5284 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2721/1.07, allocations: 2.566 MB / 0.5309 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009544/1.071, allocations: 324.9 kB / 0.5312 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003228/1.072, allocations: 44.88 kB / 0.5312 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/1.074, allocations: 159.7 kB / 0.5314 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006173/1.074, allocations: 189.8 kB / 0.5315 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/1.075, allocations: 48.92 kB / 0.5316 GB, free: 113 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001166/1.076, allocations: 0.5125 MB / 0.5321 GB, free: 112.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.5e-07/1.076, allocations: 1.344 kB / 0.5321 GB, free: 112.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002184/1.078, allocations: 352.8 kB / 0.5324 GB, free: 112.9 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.0005248/1.079, allocations: 188.2 kB / 0.5326 GB, free: 112.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004362/1.083, allocations: 1.76 MB / 0.5343 GB, free: 112.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/1.083, allocations: 5.188 kB / 0.5343 GB, free: 112.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002678/1.086, allocations: 0.8951 MB / 0.5352 GB, free: 112.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/1.087, allocations: 174.2 kB / 0.5354 GB, free: 112.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/1.095, allocations: 2.516 MB / 0.5378 GB, free: 111.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/1.096, allocations: 1.21 MB / 0.539 GB, free: 110.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009509/1.097, allocations: 83.5 kB / 0.5391 GB, free: 110.7 MB / 410.7 MB Notification: Performance of SimCode: time 2.245e-06/1.097, allocations: 0 / 0.5391 GB, free: 110.7 MB / 410.7 MB Notification: Performance of Templates: time 0.05729/1.155, allocations: 34.15 MB / 0.5724 GB, free: 105.2 MB / 410.7 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