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.001632/0.001632, allocations: 117.7 kB / 18.46 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 204.9 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.013/2.013, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2666, allocations: 50.55 MB / 409.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01057/0.2772, allocations: 9.382 MB / 419.3 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004748/0.282, allocations: 2.446 MB / 421.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.2835, allocations: 27.94 kB / 421.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.2846, allocations: 340.9 kB / 422.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001661/0.2863, allocations: 0.4996 MB / 422.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.2876, allocations: 0.6477 MB / 423.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.2903, allocations: 2.368 MB / 425.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.2919, allocations: 1.123 MB / 426.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.2932, allocations: 0.8685 MB / 427.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.2943, allocations: 0.8949 MB / 428.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.2946, allocations: 280 kB / 428.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/0.2951, allocations: 332 kB / 429.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004227/0.2956, allocations: 0.5026 MB / 429.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009218/0.2965, allocations: 0.9881 MB / 430.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003121/0.2996, allocations: 3.389 MB / 434 MB, free: 9.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2997, allocations: 4 kB / 434 MB, free: 9.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2997, allocations: 0 / 434 MB, free: 9.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.64e-05/0.2997, allocations: 0 / 434 MB, free: 9.332 MB / 350.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.003999/0.3037, allocations: 1.951 MB / 436 MB, free: 7.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.3038, allocations: 12.03 kB / 436 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002927/0.3041, allocations: 175 kB / 436.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.3054, allocations: 0.8536 MB / 437 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.3057, allocations: 236.7 kB / 437.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002353/0.306, allocations: 171.8 kB / 437.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003215/0.3092, allocations: 1.667 MB / 439.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.482e-05/0.3093, allocations: 11.89 kB / 439.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001358/0.3094, allocations: 60 kB / 439.1 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.062e-05/0.3094, allocations: 36 kB / 439.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003277/0.3127, allocations: 1.535 MB / 440.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009602/0.3223, allocations: 5.821 MB / 446.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002051/0.3244, allocations: 0.9368 MB / 447.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.3255, allocations: 0.5044 MB / 448 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.758e-05/0.3256, allocations: 9 kB / 448 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/0.3268, allocations: 0.6411 MB / 448.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.806e-06/0.3268, allocations: 4 kB / 448.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.0353/0.3621, allocations: 8.785 MB / 457.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/0.3623, allocations: 311.7 kB / 457.7 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.3636, allocations: 0.8013 MB / 458.5 MB, free: 184 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001435/0.3638, allocations: 53.7 kB / 458.6 MB, free: 124 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005691/0.3644, allocations: 0.6662 MB / 459.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/0.3648, allocations: 414 kB / 459.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005153/0.3653, allocations: 251.4 kB / 459.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.3655, allocations: 402.7 kB / 460.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.3676, allocations: 0.7887 MB / 461.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.3698, allocations: 1.115 MB / 462.2 MB, free: 12.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.3737, allocations: 1.596 MB / 463.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.3737, allocations: 4 kB / 463.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005031/0.3787, allocations: 2.029 MB / 465.8 MB, free: 8.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.3788, allocations: 8 kB / 465.8 MB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.3788, allocations: 8 kB / 465.8 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005049/0.3793, allocations: 218.4 kB / 466 MB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/0.381, allocations: 355.5 kB / 466.4 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.3854, allocations: 4.835 MB / 471.2 MB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.3872, allocations: 171.8 kB / 471.4 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.3874, allocations: 51.94 kB / 471.4 MB, free: 2.57 MB / 382.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.0008516/0.3882, allocations: 399.1 kB / 471.8 MB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002688/0.3885, allocations: 102.8 kB / 471.9 MB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.3888, allocations: 134.1 kB / 472.1 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.3888, allocations: 12 kB / 472.1 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.3888, allocations: 0 / 472.1 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.3888, allocations: 7.969 kB / 472.1 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008369/0.3972, allocations: 4.358 MB / 476.4 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/0.3973, allocations: 12 kB / 476.4 MB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.3985, allocations: 263.6 kB / 476.7 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005501/0.399, allocations: 273.6 kB / 477 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.3992, allocations: 39.98 kB / 477 MB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001916/0.4011, allocations: 2.201 MB / 479.2 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.4011, allocations: 11.94 kB / 479.2 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005157/0.4063, allocations: 2.397 MB / 481.6 MB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007024/0.407, allocations: 323.7 kB / 481.9 MB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.4073, allocations: 40 kB / 482 MB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.4085, allocations: 143.8 kB / 482.1 MB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003438/0.4089, allocations: 176.2 kB / 482.3 MB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.539e-05/0.409, allocations: 51.98 kB / 482.3 MB, free: 7.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007689/0.4098, allocations: 0.5381 MB / 482.9 MB, free: 6.586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4098, allocations: 0 / 482.9 MB, free: 6.586 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001295/0.4111, allocations: 343.9 kB / 483.2 MB, free: 6.25 MB / 398.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.0009915/0.4121, allocations: 416.9 kB / 483.6 MB, free: 5.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004335/0.4164, allocations: 2.008 MB / 485.6 MB, free: 3.914 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.4165, allocations: 4 kB / 485.6 MB, free: 3.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00213/0.4186, allocations: 1.012 MB / 486.6 MB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.4199, allocations: 199.1 kB / 486.8 MB, free: 2.691 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005747/0.4256, allocations: 3.143 MB / 490 MB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009045/0.4265, allocations: 1.19 MB / 491.2 MB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000498/0.427, allocations: 87.44 kB / 491.3 MB, free: 14.07 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4271, allocations: 0 / 491.3 MB, free: 14.07 MB / 414.1 MB Notification: Performance of Templates: time 0.04175/0.4688, allocations: 36.96 MB / 0.5158 GB, free: 9.129 MB / 446.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