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.00171/0.00171, allocations: 112.6 kB / 17.7 MB, free: 5.387 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.001544/0.001543, allocations: 182.9 kB / 18.63 MB, free: 4.461 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.369/1.369, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009755/0.0009757, allocations: 42.52 kB / 302.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09117, allocations: 49.46 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01046/0.1017, allocations: 9.258 MB / 360.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004427/0.1061, allocations: 2.294 MB / 363.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008985/0.107, allocations: 27.94 kB / 363.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000875/0.108, allocations: 321 kB / 363.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.1092, allocations: 495.7 kB / 363.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.1105, allocations: 0.6593 MB / 364.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002519/0.113, allocations: 2.345 MB / 366.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.1144, allocations: 1.119 MB / 368 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.1156, allocations: 0.849 MB / 368.9 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.1166, allocations: 0.8831 MB / 369.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003211/0.117, allocations: 276 kB / 370 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004399/0.1174, allocations: 331.9 kB / 370.4 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003909/0.1178, allocations: 0.4987 MB / 370.9 MB, free: 256 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.162/0.2798, allocations: 0.9694 MB / 371.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003524/0.2834, allocations: 3.331 MB / 375.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2834, allocations: 1.5 kB / 375.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2834, allocations: 0 / 375.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.575e-05/0.2835, allocations: 0.5 kB / 375.2 MB, free: 13.99 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.003998/0.2875, allocations: 1.92 MB / 377.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2876, allocations: 10.44 kB / 377.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.2879, allocations: 183.5 kB / 377.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.2891, allocations: 0.8459 MB / 378.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.2893, allocations: 238.1 kB / 378.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.2896, allocations: 154.7 kB / 378.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/0.2926, allocations: 1.687 MB / 380.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.576e-05/0.2927, allocations: 3.641 kB / 380.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.2928, allocations: 62.09 kB / 380.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.2929, allocations: 39.67 kB / 380.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002996/0.2959, allocations: 1.565 MB / 381.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007743/0.3036, allocations: 5.819 MB / 387.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.3054, allocations: 0.9336 MB / 388.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009396/0.3064, allocations: 0.5319 MB / 389.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.169e-05/0.3065, allocations: 11.55 kB / 389.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.3076, allocations: 0.6577 MB / 389.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.276e-06/0.3076, allocations: 0.6562 kB / 389.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03063/0.3383, allocations: 8.928 MB / 398.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.3384, allocations: 300.8 kB / 399 MB, free: 1.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009694/0.3393, allocations: 0.7863 MB / 399.8 MB, free: 1.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.3395, allocations: 54.58 kB / 399.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.3398, allocations: 0.6602 MB / 400.5 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.3401, allocations: 408.2 kB / 400.9 MB, free: 268 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004362/0.3405, allocations: 251.1 kB / 401.2 MB, free: 92 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.3407, allocations: 409.3 kB / 401.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001824/0.3426, allocations: 0.8121 MB / 402.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/0.3446, allocations: 1.13 MB / 403.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003413/0.3481, allocations: 1.654 MB / 405.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.3481, allocations: 0 / 405.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004531/0.3526, allocations: 2.073 MB / 407.2 MB, free: 9.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.3527, allocations: 11.94 kB / 407.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.3527, allocations: 9.625 kB / 407.3 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004517/0.3531, allocations: 175.4 kB / 407.4 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.3548, allocations: 354.2 kB / 407.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004028/0.3589, allocations: 4.805 MB / 412.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.3605, allocations: 167.9 kB / 412.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.3606, allocations: 44 kB / 412.8 MB, free: 3.934 MB / 318.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.0008004/0.3614, allocations: 390.2 kB / 413.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.3617, allocations: 110.7 kB / 413.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.362, allocations: 130 kB / 413.4 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.362, allocations: 12 kB / 413.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/0.362, allocations: 4 kB / 413.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.362, allocations: 6.172 kB / 413.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007822/0.3698, allocations: 4.409 MB / 417.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.3699, allocations: 8 kB / 417.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.3711, allocations: 269.2 kB / 418.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005798/0.3716, allocations: 371.1 kB / 418.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.3718, allocations: 35.98 kB / 418.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/0.3736, allocations: 2.277 MB / 420.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/0.3737, allocations: 15.55 kB / 420.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004933/0.3786, allocations: 2.499 MB / 423.3 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007484/0.3794, allocations: 323.7 kB / 423.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.3796, allocations: 40 kB / 423.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.3807, allocations: 143.8 kB / 423.8 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003359/0.381, allocations: 169.9 kB / 424 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.3811, allocations: 43.94 kB / 424 MB, free: 8.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008005/0.3819, allocations: 0.5401 MB / 424.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3819, allocations: 0 / 424.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001373/0.3833, allocations: 348 kB / 424.9 MB, free: 7.484 MB / 334.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.0003216/0.3837, allocations: 184 kB / 425.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.3877, allocations: 2.056 MB / 427.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.3877, allocations: 0 / 427.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/0.3899, allocations: 1.044 MB / 428.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.3911, allocations: 200.4 kB / 428.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/0.3968, allocations: 3.074 MB / 431.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008522/0.3977, allocations: 1.184 MB / 432.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007928/0.3985, allocations: 164.4 kB / 432.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.3989, allocations: 75.44 kB / 432.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3989, allocations: 4 kB / 432.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of Templates: time 0.03115/0.43, allocations: 18.69 MB / 451.5 MB, free: 12.88 MB / 366.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 -s gbode -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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches