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.001098/0.001098, allocations: 182.5 kB / 17.27 MB, free: 4.504 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.537/1.537, allocations: 222.9 MB / 240.9 MB, free: 10.97 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.00106/0.00106, allocations: 93.8 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008487/0.0008487, allocations: 39.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2447, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007709/0.2524, allocations: 9.205 MB / 408.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004646/0.2571, allocations: 2.248 MB / 410.9 MB, free: 21.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.2587, allocations: 31.88 kB / 411 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007286/0.2595, allocations: 246.3 kB / 411.2 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.2607, allocations: 428.8 kB / 411.6 MB, free: 21.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009404/0.2616, allocations: 0.5777 MB / 412.2 MB, free: 20.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.263, allocations: 2.177 MB / 414.4 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.2641, allocations: 1.017 MB / 415.4 MB, free: 17.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007471/0.2648, allocations: 0.7005 MB / 416.1 MB, free: 16.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005936/0.2654, allocations: 0.7933 MB / 416.9 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.2656, allocations: 128 kB / 417 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002962/0.2659, allocations: 179.9 kB / 417.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000237/0.2662, allocations: 362.7 kB / 417.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005458/0.2667, allocations: 0.8319 MB / 418.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001679/0.2684, allocations: 3.154 MB / 421.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2684, allocations: 4 kB / 421.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2684, allocations: 0 / 421.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.2685, allocations: 0 / 421.5 MB, free: 11.19 MB / 298.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.002982/0.2714, allocations: 1.925 MB / 423.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2715, allocations: 8.031 kB / 423.5 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.2717, allocations: 182.9 kB / 423.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008879/0.2726, allocations: 0.8342 MB / 424.5 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/0.2728, allocations: 228.7 kB / 424.7 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/0.273, allocations: 163.8 kB / 424.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/0.2754, allocations: 1.686 MB / 426.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.754e-05/0.2754, allocations: 0 / 426.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.2756, allocations: 72 kB / 426.6 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.2756, allocations: 36 kB / 426.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.2783, allocations: 1.562 MB / 428.2 MB, free: 4.355 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006881/0.2852, allocations: 5.884 MB / 434.1 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.2871, allocations: 0.9364 MB / 435 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009725/0.2881, allocations: 0.5322 MB / 435.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.666e-05/0.2881, allocations: 9 kB / 435.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.2893, allocations: 0.6567 MB / 436.2 MB, free: 12.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 3.065e-06/0.2893, allocations: 4 kB / 436.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=120): time 0.03224/0.3216, allocations: 8.919 MB / 445.2 MB, free: 3.008 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.3217, allocations: 303.7 kB / 445.5 MB, free: 2.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.3228, allocations: 0.7934 MB / 446.2 MB, free: 1.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.063e-05/0.3229, allocations: 53.7 kB / 446.3 MB, free: 1.781 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005182/0.3234, allocations: 0.6661 MB / 447 MB, free: 1.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003097/0.3237, allocations: 402.2 kB / 447.4 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004385/0.3242, allocations: 251.3 kB / 447.6 MB, free: 464 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3244, allocations: 410.7 kB / 448 MB, free: 44 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001804/0.3262, allocations: 0.8121 MB / 448.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.3283, allocations: 1.126 MB / 449.9 MB, free: 13.99 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003448/0.3318, allocations: 1.654 MB / 451.6 MB, free: 12.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3318, allocations: 0 / 451.6 MB, free: 12.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004478/0.3363, allocations: 2.076 MB / 453.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3363, allocations: 8 kB / 453.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.3363, allocations: 8 kB / 453.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004042/0.3367, allocations: 182.5 kB / 453.9 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.3383, allocations: 351.5 kB / 454.2 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/0.3421, allocations: 4.443 MB / 458.7 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.3436, allocations: 163.9 kB / 458.8 MB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.3437, allocations: 48 kB / 458.9 MB, free: 4.547 MB / 330.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: 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 (168): * Single equations (assignments): 165 * 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.0008067/0.3446, allocations: 399.2 kB / 459.3 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.3447, allocations: 98.78 kB / 459.3 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002936/0.345, allocations: 134 kB / 459.5 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.3451, allocations: 16 kB / 459.5 MB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.3451, allocations: 0 / 459.5 MB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.3451, allocations: 7.969 kB / 459.5 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007739/0.3528, allocations: 4.423 MB / 463.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.3529, allocations: 12.25 kB / 463.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.3539, allocations: 263.6 kB / 464.2 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005553/0.3545, allocations: 365.5 kB / 464.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/0.3546, allocations: 35.98 kB / 464.6 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.3563, allocations: 2.176 MB / 466.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/0.3563, allocations: 15.94 kB / 466.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02535/0.3816, allocations: 13.95 MB / 480.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004861/0.3822, allocations: 323.7 kB / 481 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.3823, allocations: 43.98 kB / 481.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.3834, allocations: 143.8 kB / 481.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/0.3837, allocations: 164.2 kB / 481.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-05/0.3838, allocations: 43.98 kB / 481.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006686/0.3844, allocations: 0.5342 MB / 482 MB, free: 12.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3844, allocations: 0 / 482 MB, free: 12.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001442/0.3859, allocations: 468 kB / 482.4 MB, free: 11.99 MB / 362.7 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003316/0.3862, allocations: 214.1 kB / 482.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.3902, allocations: 2.024 MB / 484.7 MB, free: 9.719 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3903, allocations: 3.938 kB / 484.7 MB, free: 9.715 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002149/0.3924, allocations: 1.055 MB / 485.7 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.3937, allocations: 186.8 kB / 485.9 MB, free: 8.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006521/0.4002, allocations: 4.704 MB / 490.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007657/0.401, allocations: 1.202 MB / 491.8 MB, free: 2.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001083/0.4021, allocations: 180.4 kB / 492 MB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003918/0.4025, allocations: 87.42 kB / 492.1 MB, free: 2.055 MB / 362.7 MB Notification: Performance of SimCode: time 8.21e-07/0.4025, allocations: 0 / 492.1 MB, free: 2.055 MB / 362.7 MB Notification: Performance of Templates: time 0.2068/0.6093, allocations: 21.43 MB / 0.5015 GB, free: 96.76 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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