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.001083/0.001083, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001208, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.52 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08941/0.09062, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01107/0.1017, allocations: 9.387 MB / 366.9 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004653/0.1064, allocations: 2.438 MB / 369.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.1077, allocations: 31.88 kB / 369.3 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.1089, allocations: 344.9 kB / 369.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001759/0.1107, allocations: 499.7 kB / 370.2 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.1122, allocations: 0.6593 MB / 370.8 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1515/0.2637, allocations: 2.346 MB / 373.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.2653, allocations: 1.117 MB / 374.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.2665, allocations: 0.8566 MB / 375.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000921/0.2674, allocations: 0.8912 MB / 376 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003073/0.2677, allocations: 279.2 kB / 376.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000526/0.2682, allocations: 335.5 kB / 376.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004263/0.2687, allocations: 0.5051 MB / 377.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008553/0.2696, allocations: 0.9873 MB / 378.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003542/0.2731, allocations: 3.359 MB / 381.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2731, allocations: 1.594 kB / 381.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2731, allocations: 1.812 kB / 381.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.83e-05/0.2732, allocations: 0 / 381.5 MB, free: 8.215 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.003532/0.2767, allocations: 1.952 MB / 383.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.2768, allocations: 9.562 kB / 383.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003037/0.2771, allocations: 186.9 kB / 383.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.2782, allocations: 0.8351 MB / 384.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000265/0.2785, allocations: 236.8 kB / 384.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002383/0.2787, allocations: 162 kB / 384.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002889/0.2816, allocations: 1.679 MB / 386.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.382e-05/0.2817, allocations: 6.062 kB / 386.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.2818, allocations: 64.98 kB / 386.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.25e-05/0.2819, allocations: 36.72 kB / 386.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003147/0.285, allocations: 1.53 MB / 388.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007465/0.2925, allocations: 5.895 MB / 394.1 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003025/0.2955, allocations: 0.931 MB / 395 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.2972, allocations: 0.5107 MB / 395.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.843e-05/0.2973, allocations: 10.56 kB / 395.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001867/0.2991, allocations: 0.6433 MB / 396.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.506e-06/0.2992, allocations: 0 / 396.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.04843/0.3476, allocations: 8.796 MB / 405 MB, free: 9.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.3478, allocations: 295.7 kB / 405.2 MB, free: 8.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001303/0.3491, allocations: 0.8013 MB / 406 MB, free: 7.879 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.3492, allocations: 57.69 kB / 406.1 MB, free: 7.816 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005568/0.3498, allocations: 0.6646 MB / 406.8 MB, free: 7.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003605/0.3502, allocations: 414.9 kB / 407.2 MB, free: 6.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005045/0.3507, allocations: 247.4 kB / 407.4 MB, free: 6.492 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3509, allocations: 406.7 kB / 407.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00197/0.3529, allocations: 0.7926 MB / 408.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002164/0.355, allocations: 1.105 MB / 409.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003627/0.3587, allocations: 1.601 MB / 411.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.3587, allocations: 4 kB / 411.3 MB, free: 2.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004767/0.3635, allocations: 2.032 MB / 413.3 MB, free: 408 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.3635, allocations: 8 kB / 413.4 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.3635, allocations: 8 kB / 413.4 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004673/0.364, allocations: 218 kB / 413.6 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.3657, allocations: 357.4 kB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004072/0.3698, allocations: 4.838 MB / 418.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.3715, allocations: 167.8 kB / 418.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.3716, allocations: 55.98 kB / 419 MB, free: 10.38 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.0007681/0.3724, allocations: 396.2 kB / 419.4 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.3726, allocations: 102.8 kB / 419.5 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002946/0.3729, allocations: 138.1 kB / 419.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.373, allocations: 12 kB / 419.6 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.373, allocations: 4 kB / 419.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.373, allocations: 3.984 kB / 419.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00786/0.3809, allocations: 4.35 MB / 424 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/0.3809, allocations: 8 kB / 424 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.3821, allocations: 272.6 kB / 424.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005187/0.3826, allocations: 277.5 kB / 424.5 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.955e-05/0.3827, allocations: 35.98 kB / 424.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.3844, allocations: 2.2 MB / 426.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/0.3844, allocations: 15.56 kB / 426.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004776/0.3892, allocations: 2.39 MB / 429.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005951/0.3898, allocations: 327.2 kB / 429.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/0.3901, allocations: 43.98 kB / 429.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.3913, allocations: 139.9 kB / 429.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000324/0.3916, allocations: 170.8 kB / 429.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.252e-05/0.3917, allocations: 43.98 kB / 429.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000812/0.3925, allocations: 0.542 MB / 430.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3925, allocations: 4 kB / 430.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001397/0.3939, allocations: 344 kB / 430.7 MB, free: 14.24 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.001166/0.3951, allocations: 416.7 kB / 431.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00474/0.3999, allocations: 2.06 MB / 433.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.3999, allocations: 1.812 kB / 433.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.4021, allocations: 1.038 MB / 434.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.4034, allocations: 215.4 kB / 434.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005809/0.4092, allocations: 3.131 MB / 437.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008883/0.4101, allocations: 1.182 MB / 438.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009557/0.4111, allocations: 176.4 kB / 438.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/0.4115, allocations: 79.42 kB / 439 MB, free: 5.957 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4115, allocations: 0 / 439 MB, free: 5.957 MB / 350.1 MB Notification: Performance of Templates: time 0.03392/0.4454, allocations: 18.87 MB / 457.9 MB, free: 3.227 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/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