Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009795/0.0009795, allocations: 196.1 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 226.5 MB / 245.4 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007347/0.0007348, allocations: 101.7 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002329/0.0002329, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2059, allocations: 51.3 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.3148, allocations: 98.11 MB / 0.4956 GB, free: 9.355 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.3151, allocations: 91.94 kB / 0.4957 GB, free: 9.266 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2487/0.5638, allocations: 41.28 MB / 0.536 GB, free: 77.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5638, allocations: 0 / 0.536 GB, free: 77.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.523e-05/0.5639, allocations: 35.94 kB / 0.536 GB, free: 77 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003268/0.5672, allocations: 1.639 MB / 0.5376 GB, free: 75.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.5672, allocations: 8.031 kB / 0.5376 GB, free: 75.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005442/0.5678, allocations: 182.9 kB / 0.5378 GB, free: 75.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.5692, allocations: 0.8302 MB / 0.5386 GB, free: 74.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.5694, allocations: 236.7 kB / 0.5389 GB, free: 74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002925/0.5697, allocations: 160.3 kB / 0.539 GB, free: 73.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002965/0.5727, allocations: 1.667 MB / 0.5406 GB, free: 72.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.087e-05/0.5728, allocations: 15.84 kB / 0.5406 GB, free: 72.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.5729, allocations: 63.98 kB / 0.5407 GB, free: 72.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.5729, allocations: 44 kB / 0.5408 GB, free: 72.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.5759, allocations: 1.542 MB / 0.5423 GB, free: 70.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008342/0.5843, allocations: 6.066 MB / 0.5482 GB, free: 64.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.5862, allocations: 0.9593 MB / 0.5491 GB, free: 63.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008974/0.5871, allocations: 0.5168 MB / 0.5496 GB, free: 62.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.109e-05/0.5872, allocations: 13 kB / 0.5496 GB, free: 62.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.5882, allocations: 0.6528 MB / 0.5503 GB, free: 61.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=91): time 2.966e-06/0.5883, allocations: 0 / 0.5503 GB, free: 61.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.03071/0.619, allocations: 9.769 MB / 0.5598 GB, free: 52.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/0.6191, allocations: 303.7 kB / 0.5601 GB, free: 51.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.6203, allocations: 0.8092 MB / 0.5609 GB, free: 50.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.6204, allocations: 53.7 kB / 0.5609 GB, free: 50.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004487/0.6209, allocations: 0.6662 MB / 0.5616 GB, free: 50.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/0.6211, allocations: 410.1 kB / 0.562 GB, free: 49.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-05/0.6213, allocations: 32 kB / 0.562 GB, free: 49.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.6214, allocations: 402.7 kB / 0.5624 GB, free: 49.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.6231, allocations: 0.8238 MB / 0.5632 GB, free: 48.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.625, allocations: 1.146 MB / 0.5643 GB, free: 47.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003121/0.6281, allocations: 1.674 MB / 0.566 GB, free: 45.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.6282, allocations: 4 kB / 0.566 GB, free: 45.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004201/0.6324, allocations: 2.096 MB / 0.568 GB, free: 43.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.6324, allocations: 11.98 kB / 0.568 GB, free: 43.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.6324, allocations: 4 kB / 0.568 GB, free: 43.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00038/0.6328, allocations: 178.5 kB / 0.5682 GB, free: 43.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.6343, allocations: 371.5 kB / 0.5685 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/0.6371, allocations: 4.469 MB / 0.5729 GB, free: 37.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.6386, allocations: 211.8 kB / 0.5731 GB, free: 37.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.6387, allocations: 51.94 kB / 0.5732 GB, free: 37.65 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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: 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.0008316/0.6396, allocations: 391.7 kB / 0.5735 GB, free: 37.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.6398, allocations: 102.9 kB / 0.5736 GB, free: 37.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.6401, allocations: 138.1 kB / 0.5738 GB, free: 37.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.6401, allocations: 12 kB / 0.5738 GB, free: 37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.6401, allocations: 3.938 kB / 0.5738 GB, free: 37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.6401, allocations: 7.969 kB / 0.5738 GB, free: 36.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007022/0.6471, allocations: 4.493 MB / 0.5782 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.6472, allocations: 8 kB / 0.5782 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.6482, allocations: 288.5 kB / 0.5785 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004044/0.6486, allocations: 237.6 kB / 0.5787 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.262e-05/0.6487, allocations: 39.98 kB / 0.5787 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.6499, allocations: 2.076 MB / 0.5808 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.6499, allocations: 12.09 kB / 0.5808 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004084/0.654, allocations: 2.498 MB / 0.5832 GB, free: 26.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005527/0.6546, allocations: 327.6 kB / 0.5835 GB, free: 26.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/0.6549, allocations: 47.98 kB / 0.5836 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/0.6559, allocations: 159.9 kB / 0.5837 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000313/0.6562, allocations: 184.5 kB / 0.5839 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.453e-05/0.6563, allocations: 43.98 kB / 0.5839 GB, free: 26.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007559/0.657, allocations: 0.5459 MB / 0.5845 GB, free: 25.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.657, allocations: 0 / 0.5845 GB, free: 25.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001335/0.6584, allocations: 348 kB / 0.5848 GB, free: 25.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008537/0.6592, allocations: 432.1 kB / 0.5852 GB, free: 24.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003646/0.6629, allocations: 2.058 MB / 0.5872 GB, free: 22.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.6629, allocations: 4 kB / 0.5872 GB, free: 22.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.6648, allocations: 1.049 MB / 0.5882 GB, free: 21.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/0.6669, allocations: 197.5 kB / 0.5884 GB, free: 21.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005627/0.6725, allocations: 3.775 MB / 0.5921 GB, free: 17.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007502/0.6733, allocations: 1.187 MB / 0.5933 GB, free: 16.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001072/0.6744, allocations: 156.4 kB / 0.5934 GB, free: 16.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.6748, allocations: 87.42 kB / 0.5935 GB, free: 16.18 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6748, allocations: 0 / 0.5935 GB, free: 16.18 MB / 378.7 MB Notification: Performance of Templates: time 0.02683/0.7016, allocations: 17.4 MB / 0.6105 GB, free: 14.89 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches