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.0009565/0.0009564, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.3 MB / 241.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007461/0.0007462, allocations: 94.69 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002995, allocations: 11.94 kB / 352.4 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2119, allocations: 50.39 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.3201, allocations: 96.66 MB / 499.4 MB, free: 15.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.3204, allocations: 91.94 kB / 499.5 MB, free: 15.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2367/0.5571, allocations: 38.97 MB / 0.5259 GB, free: 88.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5571, allocations: 0 / 0.5259 GB, free: 88.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.718e-05/0.5572, allocations: 38.34 kB / 0.5259 GB, free: 88.57 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.002677/0.5599, allocations: 1.609 MB / 0.5275 GB, free: 86.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.5599, allocations: 12.03 kB / 0.5275 GB, free: 86.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.5602, allocations: 178.9 kB / 0.5276 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008999/0.5611, allocations: 0.8217 MB / 0.5284 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.5614, allocations: 244.7 kB / 0.5287 GB, free: 85.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.5615, allocations: 152.4 kB / 0.5288 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.5641, allocations: 1.671 MB / 0.5305 GB, free: 83.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.652e-05/0.5642, allocations: 11.84 kB / 0.5305 GB, free: 83.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.5643, allocations: 67.98 kB / 0.5305 GB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.5643, allocations: 40 kB / 0.5306 GB, free: 83.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002788/0.5671, allocations: 1.535 MB / 0.5321 GB, free: 82.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00734/0.5745, allocations: 6.046 MB / 0.538 GB, free: 75.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.5762, allocations: 0.9392 MB / 0.5389 GB, free: 74.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008786/0.5771, allocations: 0.5401 MB / 0.5394 GB, free: 74.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-05/0.5771, allocations: 13 kB / 0.5394 GB, free: 74.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.5782, allocations: 0.672 MB / 0.5401 GB, free: 73.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.116e-06/0.5782, allocations: 4 kB / 0.5401 GB, free: 73.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.02985/0.6081, allocations: 9.879 MB / 0.5497 GB, free: 63.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.6082, allocations: 303.7 kB / 0.55 GB, free: 63.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008817/0.6091, allocations: 0.7661 MB / 0.5508 GB, free: 62.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.915e-05/0.6092, allocations: 57.69 kB / 0.5508 GB, free: 62.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003814/0.6096, allocations: 0.6555 MB / 0.5515 GB, free: 61.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002335/0.6098, allocations: 419.1 kB / 0.5519 GB, free: 61.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.021e-05/0.6099, allocations: 28 kB / 0.5519 GB, free: 61.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.61, allocations: 410.7 kB / 0.5523 GB, free: 60.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.6117, allocations: 0.8316 MB / 0.5531 GB, free: 60.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.6135, allocations: 1.15 MB / 0.5542 GB, free: 58.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003051/0.6166, allocations: 1.689 MB / 0.5559 GB, free: 57.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.6166, allocations: 4 kB / 0.5559 GB, free: 57.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003937/0.6206, allocations: 2.111 MB / 0.5579 GB, free: 54.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.6206, allocations: 10.66 kB / 0.558 GB, free: 54.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.6206, allocations: 8 kB / 0.558 GB, free: 54.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000348/0.621, allocations: 180.2 kB / 0.5581 GB, free: 54.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.6224, allocations: 371.5 kB / 0.5585 GB, free: 54.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/0.6251, allocations: 4.451 MB / 0.5628 GB, free: 49.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.6266, allocations: 211.7 kB / 0.563 GB, free: 49.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.6267, allocations: 52.08 kB / 0.5631 GB, free: 49.29 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 (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.0008043/0.6275, allocations: 403.6 kB / 0.5635 GB, free: 48.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.6277, allocations: 102.8 kB / 0.5636 GB, free: 48.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003555/0.6312, allocations: 1.834 MB / 0.5654 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.6313, allocations: 12 kB / 0.5654 GB, free: 46.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.6313, allocations: 0 / 0.5654 GB, free: 46.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.6313, allocations: 7.969 kB / 0.5654 GB, free: 46.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006774/0.6381, allocations: 4.515 MB / 0.5698 GB, free: 42.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/0.6381, allocations: 8.938 kB / 0.5698 GB, free: 42.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.6391, allocations: 279.6 kB / 0.5701 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004822/0.6396, allocations: 333.4 kB / 0.5704 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.699e-05/0.6397, allocations: 39.98 kB / 0.5704 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.6409, allocations: 2.097 MB / 0.5725 GB, free: 39.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/0.6409, allocations: 15.94 kB / 0.5725 GB, free: 39.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004027/0.6449, allocations: 2.528 MB / 0.5749 GB, free: 36.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.6454, allocations: 327.7 kB / 0.5753 GB, free: 36.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.6456, allocations: 51.92 kB / 0.5753 GB, free: 36.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009026/0.6465, allocations: 159.9 kB / 0.5755 GB, free: 36.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/0.6468, allocations: 184.5 kB / 0.5756 GB, free: 35.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.284e-05/0.6469, allocations: 51.98 kB / 0.5757 GB, free: 35.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006995/0.6476, allocations: 0.5264 MB / 0.5762 GB, free: 35.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6476, allocations: 0 / 0.5762 GB, free: 35.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00116/0.6488, allocations: 352 kB / 0.5765 GB, free: 35.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (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.0002736/0.6491, allocations: 187.5 kB / 0.5767 GB, free: 34.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.6526, allocations: 2.108 MB / 0.5788 GB, free: 32.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.6526, allocations: 0 / 0.5788 GB, free: 32.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.6545, allocations: 1.073 MB / 0.5798 GB, free: 31.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.6564, allocations: 186 kB / 0.58 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005228/0.6617, allocations: 3.754 MB / 0.5837 GB, free: 27.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006071/0.6623, allocations: 1.175 MB / 0.5848 GB, free: 26.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009532/0.6633, allocations: 168.3 kB / 0.585 GB, free: 26.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/0.6636, allocations: 71.44 kB / 0.585 GB, free: 26.05 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6636, allocations: 0 / 0.585 GB, free: 26.05 MB / 378.7 MB Notification: Performance of Templates: time 0.02393/0.6876, allocations: 17.25 MB / 0.6019 GB, free: 8.934 MB / 378.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/jenkins1/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