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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009406/0.0009405, allocations: 98.89 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009139/0.000914, allocations: 181.1 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 223.2 MB / 241.1 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002785, allocations: 5.5 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09088/0.09118, allocations: 50.43 MB / 351.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007525/0.09875, allocations: 7.458 MB / 358.6 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.103, allocations: 2.307 MB / 360.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.1043, allocations: 27.88 kB / 360.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009431/0.1053, allocations: 230.3 kB / 361.2 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.107, allocations: 0.5219 MB / 361.7 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.1082, allocations: 347.5 kB / 362 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002468/0.1107, allocations: 1.42 MB / 363.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.1118, allocations: 0.8132 MB / 364.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008641/0.1127, allocations: 0.5838 MB / 364.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006948/0.1134, allocations: 0.6494 MB / 365.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.1135, allocations: 80 kB / 365.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.1138, allocations: 123.9 kB / 365.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002364/0.114, allocations: 278.9 kB / 366 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000276/0.1143, allocations: 344.9 kB / 366.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001898/0.1162, allocations: 2.66 MB / 369 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.1162, allocations: 4 kB / 369 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1163, allocations: 0 / 369 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.038e-05/0.1163, allocations: 4 kB / 369 MB, free: 9.754 MB / 302.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.003043/0.1194, allocations: 1.639 MB / 370.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1194, allocations: 8.031 kB / 370.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002926/0.1197, allocations: 177.9 kB / 370.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.1208, allocations: 0.81 MB / 371.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002541/0.1211, allocations: 240.1 kB / 371.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.1213, allocations: 155.9 kB / 372 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002995/0.1243, allocations: 1.67 MB / 373.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/0.1244, allocations: 11.95 kB / 373.7 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.1245, allocations: 64 kB / 373.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.759e-05/0.1246, allocations: 36 kB / 373.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/0.1278, allocations: 1.581 MB / 375.3 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008868/0.1367, allocations: 5.954 MB / 381.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001915/0.1387, allocations: 0.952 MB / 382.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.1387, allocations: 9 kB / 382.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.1399, allocations: 0.6723 MB / 382.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 3.006e-06/0.1399, allocations: 0 / 382.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03396/0.1739, allocations: 9.851 MB / 392.8 MB, free: 1.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.174, allocations: 303.7 kB / 393.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009807/0.175, allocations: 0.7817 MB / 393.9 MB, free: 236 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.1751, allocations: 53.7 kB / 393.9 MB, free: 176 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004776/0.1756, allocations: 0.6584 MB / 394.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003148/0.176, allocations: 406.1 kB / 395 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.852e-05/0.1761, allocations: 36.02 kB / 395 MB, free: 15.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1762, allocations: 402.7 kB / 395.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001866/0.1781, allocations: 0.8433 MB / 396.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/0.1802, allocations: 1.158 MB / 397.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001852/0.182, allocations: 0.8262 MB / 398.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1821, allocations: 3.953 kB / 398.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004434/0.1865, allocations: 2.131 MB / 400.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.1865, allocations: 8 kB / 400.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.1866, allocations: 8 kB / 400.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000403/0.187, allocations: 182.5 kB / 400.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/0.1886, allocations: 375.4 kB / 400.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00357/0.1922, allocations: 4.481 MB / 405.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.1938, allocations: 207.8 kB / 405.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.1939, allocations: 60.39 kB / 405.7 MB, free: 3.844 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (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.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 (168): * Single equations (assignments): 165 * 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.0007826/0.1947, allocations: 391.1 kB / 406.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.1949, allocations: 102.8 kB / 406.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002389/0.1952, allocations: 130 kB / 406.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.1952, allocations: 15.98 kB / 406.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.1952, allocations: 4 kB / 406.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.1952, allocations: 3.984 kB / 406.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007518/0.2027, allocations: 4.529 MB / 410.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/0.2028, allocations: 12 kB / 410.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.2039, allocations: 280 kB / 411.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005373/0.2045, allocations: 369.5 kB / 411.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.119e-05/0.2046, allocations: 43.98 kB / 411.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/0.2061, allocations: 2.177 MB / 413.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.307e-06/0.2061, allocations: 15.94 kB / 413.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004919/0.2111, allocations: 3.081 MB / 416.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005191/0.2116, allocations: 323.7 kB / 417.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.2118, allocations: 43.98 kB / 417.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.2128, allocations: 179.9 kB / 417.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000304/0.2132, allocations: 184.2 kB / 417.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.853e-05/0.2132, allocations: 43.98 kB / 417.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007113/0.214, allocations: 0.5302 MB / 418.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.214, allocations: 0 / 418.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001178/0.2152, allocations: 351.9 kB / 418.4 MB, free: 6.301 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.0003039/0.2155, allocations: 187.7 kB / 418.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00401/0.2195, allocations: 2.094 MB / 420.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.2195, allocations: 7.938 kB / 420.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002129/0.2216, allocations: 1.083 MB / 421.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008886/0.2225, allocations: 162.9 kB / 421.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1644/0.387, allocations: 3.732 MB / 425.7 MB, free: 64.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007487/0.3878, allocations: 1.206 MB / 426.9 MB, free: 63.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009858/0.3888, allocations: 164.5 kB / 427 MB, free: 63.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.3891, allocations: 75.44 kB / 427.1 MB, free: 63.46 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3891, allocations: 2.719 kB / 427.1 MB, free: 63.46 MB / 350.1 MB Notification: Performance of Templates: time 0.0288/0.4179, allocations: 16.95 MB / 444.1 MB, free: 57.5 MB / 350.1 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/jenkins/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