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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008193/0.0008194, allocations: 96.27 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000881/0.0008811, allocations: 203.7 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.7 MB / 247.5 MB, free: 9.484 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002451, allocations: 7.984 kB / 308.4 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09612, allocations: 51.52 MB / 359.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.00943/0.1056, allocations: 8.807 MB / 368.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004548/0.1102, allocations: 2.372 MB / 371.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.1115, allocations: 31.88 kB / 371.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009901/0.1125, allocations: 258.2 kB / 371.4 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001682/0.1142, allocations: 432.8 kB / 371.8 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.1156, allocations: 0.5855 MB / 372.4 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1755/0.2911, allocations: 2.168 MB / 374.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001888/0.293, allocations: 1.006 MB / 375.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00145/0.2945, allocations: 0.6125 MB / 376.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001165/0.2957, allocations: 0.6838 MB / 376.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000242/0.2959, allocations: 81.12 kB / 376.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004585/0.2964, allocations: 133.1 kB / 377.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.2967, allocations: 297.5 kB / 377.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009008/0.2976, allocations: 0.7834 MB / 378.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003184/0.3008, allocations: 2.715 MB / 380.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3008, allocations: 0 / 380.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3008, allocations: 2.281 kB / 380.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.648e-05/0.3009, allocations: 0 / 380.9 MB, free: 8.867 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003757/0.3047, allocations: 1.647 MB / 382.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3048, allocations: 9.969 kB / 382.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004595/0.3052, allocations: 183.7 kB / 382.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.3064, allocations: 0.8442 MB / 383.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002511/0.3066, allocations: 245.5 kB / 383.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/0.3069, allocations: 160 kB / 383.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.3103, allocations: 1.689 MB / 385.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.3103, allocations: 10.2 kB / 385.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.3105, allocations: 61.38 kB / 385.7 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.3105, allocations: 37.16 kB / 385.7 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0034/0.3139, allocations: 1.558 MB / 387.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009094/0.3231, allocations: 5.959 MB / 393.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.3251, allocations: 0.9556 MB / 394.2 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3262, allocations: 0.5215 MB / 394.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.709e-05/0.3262, allocations: 17.89 kB / 394.7 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.3274, allocations: 0.6545 MB / 395.4 MB, free: 500 kB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.895e-06/0.3274, allocations: 0 / 395.4 MB, free: 500 kB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.0362/0.3636, allocations: 9.722 MB / 405.1 MB, free: 10 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.3638, allocations: 299.7 kB / 405.4 MB, free: 9.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.3651, allocations: 0.8118 MB / 406.2 MB, free: 8.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.3653, allocations: 57.73 kB / 406.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005946/0.3659, allocations: 0.659 MB / 406.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004122/0.3663, allocations: 413.5 kB / 407.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/0.3665, allocations: 117.6 kB / 407.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.3667, allocations: 410.7 kB / 407.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.3688, allocations: 0.8238 MB / 408.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.3712, allocations: 1.145 MB / 409.8 MB, free: 5.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003863/0.3751, allocations: 1.681 MB / 411.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.3751, allocations: 3.938 kB / 411.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005059/0.3802, allocations: 2.107 MB / 413.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3802, allocations: 11.94 kB / 413.6 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.3803, allocations: 8 kB / 413.6 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004846/0.3808, allocations: 221.9 kB / 413.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.3825, allocations: 373 kB / 414.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003907/0.3864, allocations: 4.498 MB / 418.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.3883, allocations: 211.8 kB / 418.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.3885, allocations: 51.98 kB / 419 MB, free: 11.52 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,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009279/0.3894, allocations: 387.2 kB / 419.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.3896, allocations: 106.7 kB / 419.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003369/0.39, allocations: 138 kB / 419.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.39, allocations: 15.98 kB / 419.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.39, allocations: 0 / 419.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.39, allocations: 7.922 kB / 419.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008671/0.3987, allocations: 4.467 MB / 424.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-05/0.3988, allocations: 8 kB / 424.1 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.4, allocations: 284.5 kB / 424.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005514/0.4006, allocations: 285.5 kB / 424.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.4007, allocations: 35.98 kB / 424.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.4024, allocations: 2.097 MB / 426.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.254e-05/0.4024, allocations: 20.06 kB / 426.8 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00517/0.4076, allocations: 2.503 MB / 429.3 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007026/0.4084, allocations: 323.9 kB / 429.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002998/0.4087, allocations: 47.98 kB / 429.7 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.41, allocations: 183.8 kB / 429.8 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003625/0.4104, allocations: 168.2 kB / 430 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.644e-05/0.4105, allocations: 40 kB / 430 MB, free: 15.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009377/0.4114, allocations: 0.542 MB / 430.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4114, allocations: 0 / 430.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001558/0.413, allocations: 344 kB / 430.9 MB, free: 15.06 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.414, allocations: 435.3 kB / 431.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004676/0.4187, allocations: 2.064 MB / 433.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.4188, allocations: 4 kB / 433.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002316/0.4211, allocations: 1.04 MB / 434.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/0.4238, allocations: 196.3 kB / 434.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006984/0.4308, allocations: 3.995 MB / 438.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009877/0.4318, allocations: 1.186 MB / 439.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006455/0.4325, allocations: 87.42 kB / 439.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4325, allocations: 3.938 kB / 439.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of Templates: time 0.04343/0.4759, allocations: 36.41 MB / 476.3 MB, free: 1.59 MB / 382.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches