Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001585/0.001585, allocations: 109.4 kB / 18.4 MB, free: 4.664 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.001594/0.001594, allocations: 189.1 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 48.36 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1029, allocations: 46.62 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.2319/0.3349, allocations: 9.178 MB / 385 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005624/0.3406, allocations: 2.306 MB / 387.3 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.3429, allocations: 32.78 kB / 387.3 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.3442, allocations: 323.8 kB / 387.7 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002421/0.3466, allocations: 497.1 kB / 388.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001806/0.3484, allocations: 0.6494 MB / 388.8 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003502/0.352, allocations: 2.343 MB / 391.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.3536, allocations: 1.116 MB / 392.3 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001653/0.3553, allocations: 0.8513 MB / 393.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.3568, allocations: 0.8918 MB / 394 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004761/0.3573, allocations: 274.4 kB / 394.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006926/0.358, allocations: 324.1 kB / 394.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000439/0.3585, allocations: 0.5004 MB / 395.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.3595, allocations: 0.972 MB / 396.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/0.3637, allocations: 3.355 MB / 399.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3638, allocations: 0 / 399.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.3638, allocations: 0 / 399.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.678e-05/0.3639, allocations: 0 / 399.4 MB, free: 1.301 MB / 318.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.004441/0.3683, allocations: 1.919 MB / 401.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3684, allocations: 8.406 kB / 401.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003676/0.3687, allocations: 180.6 kB / 401.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.3701, allocations: 0.8471 MB / 402.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/0.3704, allocations: 229 kB / 402.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.3707, allocations: 162.8 kB / 402.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003466/0.3741, allocations: 1.687 MB / 404.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.166e-05/0.3742, allocations: 5.281 kB / 404.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.3744, allocations: 69.73 kB / 404.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.3744, allocations: 37.12 kB / 404.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003385/0.3778, allocations: 1.558 MB / 406.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009596/0.3874, allocations: 5.834 MB / 411.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.3895, allocations: 0.9366 MB / 412.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.3906, allocations: 0.5275 MB / 413.4 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.946e-05/0.3906, allocations: 9.438 kB / 413.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001661/0.3923, allocations: 0.6592 MB / 414.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 3.386e-06/0.3923, allocations: 0 / 414.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.0528/0.4451, allocations: 8.933 MB / 423 MB, free: 8 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002374/0.4454, allocations: 295.7 kB / 423.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.4475, allocations: 0.7895 MB / 424.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002925/0.4478, allocations: 57.69 kB / 424.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009358/0.4487, allocations: 0.6624 MB / 424.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006635/0.4494, allocations: 406.1 kB / 425.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009047/0.4504, allocations: 247.4 kB / 425.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002346/0.4506, allocations: 414.7 kB / 425.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002038/0.4527, allocations: 0.8082 MB / 426.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002911/0.4556, allocations: 1.127 MB / 427.8 MB, free: 11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005521/0.4611, allocations: 1.65 MB / 429.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/0.4612, allocations: 0 / 429.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00777/0.469, allocations: 2.072 MB / 431.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.4691, allocations: 8 kB / 431.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.4691, allocations: 8 kB / 431.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000725/0.4699, allocations: 186.4 kB / 431.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/0.4726, allocations: 355.5 kB / 432 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006497/0.4791, allocations: 4.807 MB / 436.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002731/0.4819, allocations: 167.8 kB / 437 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004244/0.4824, allocations: 59.92 kB / 437.1 MB, free: 1.168 MB / 350.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 (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.001661/0.4841, allocations: 379.3 kB / 437.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005362/0.4846, allocations: 106.9 kB / 437.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005139/0.4852, allocations: 138 kB / 437.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.4852, allocations: 15.98 kB / 437.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.825e-05/0.4852, allocations: 3.938 kB / 437.7 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/0.4852, allocations: 3.984 kB / 437.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/0.498, allocations: 4.405 MB / 442.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-05/0.4981, allocations: 16.06 kB / 442.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001922/0.5001, allocations: 259.6 kB / 442.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007583/0.5008, allocations: 369.5 kB / 442.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.501, allocations: 35.98 kB / 442.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/0.5037, allocations: 2.275 MB / 445 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.567e-05/0.5037, allocations: 15.94 kB / 445.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007365/0.5111, allocations: 2.498 MB / 447.6 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000979/0.5121, allocations: 319.7 kB / 447.9 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004452/0.5126, allocations: 47.98 kB / 447.9 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/0.5144, allocations: 135.9 kB / 448 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005095/0.5149, allocations: 172.2 kB / 448.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.5151, allocations: 43.98 kB / 448.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001381/0.5165, allocations: 0.5342 MB / 448.8 MB, free: 4.887 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5165, allocations: 4 kB / 448.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002591/0.5191, allocations: 344 kB / 449.1 MB, free: 4.547 MB / 366.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005976/0.5197, allocations: 179.6 kB / 449.3 MB, free: 4.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00681/0.5265, allocations: 2.047 MB / 451.4 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/0.5266, allocations: 0 / 451.4 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/0.53, allocations: 1.032 MB / 452.4 MB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.5327, allocations: 203.1 kB / 452.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009126/0.5419, allocations: 3.134 MB / 455.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/0.5435, allocations: 1.175 MB / 456.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009868/0.5445, allocations: 87.42 kB / 457 MB, free: 12.46 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5445, allocations: 0 / 457 MB, free: 12.46 MB / 382.1 MB Notification: Performance of Templates: time 0.0679/0.6124, allocations: 36.27 MB / 493.3 MB, free: 8.105 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches