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.001209/0.001209, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 60.23 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1109, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01136/0.1223, allocations: 9.391 MB / 368.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006001/0.1283, allocations: 2.442 MB / 370.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.1304, allocations: 31.88 kB / 370.8 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.132, allocations: 340.9 kB / 371.1 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00254/0.1346, allocations: 0.4997 MB / 371.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1791/0.3137, allocations: 0.6473 MB / 372.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004262/0.318, allocations: 2.362 MB / 374.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002989/0.321, allocations: 1.123 MB / 375.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.3231, allocations: 0.8554 MB / 376.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.3247, allocations: 0.8949 MB / 377.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004907/0.3252, allocations: 276.6 kB / 377.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007333/0.3259, allocations: 333.7 kB / 378.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004276/0.3264, allocations: 0.5072 MB / 378.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009817/0.3273, allocations: 0.9823 MB / 379.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004061/0.3314, allocations: 3.386 MB / 383 MB, free: 8.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3314, allocations: 3.75 kB / 383 MB, free: 8.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3314, allocations: 0 / 383 MB, free: 8.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.326e-05/0.3315, allocations: 0 / 383 MB, free: 8.262 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.004254/0.3358, allocations: 1.945 MB / 384.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3359, allocations: 10.47 kB / 384.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/0.3363, allocations: 180.9 kB / 385.1 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.3376, allocations: 0.8557 MB / 385.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.3379, allocations: 235.2 kB / 386.2 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/0.3382, allocations: 154.7 kB / 386.3 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003045/0.3412, allocations: 1.675 MB / 388 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.849e-05/0.3413, allocations: 6.375 kB / 388 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.3414, allocations: 73.42 kB / 388.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.619e-05/0.3415, allocations: 36.44 kB / 388.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003123/0.3446, allocations: 1.529 MB / 389.6 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008655/0.3533, allocations: 5.826 MB / 395.5 MB, free: 316 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.3553, allocations: 0.9255 MB / 396.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.3564, allocations: 0.5058 MB / 396.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.357e-05/0.3565, allocations: 16.09 kB / 396.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.3577, allocations: 0.6401 MB / 397.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.856e-06/0.3577, allocations: 4 kB / 397.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03268/0.3904, allocations: 8.793 MB / 406.4 MB, free: 8.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000164/0.3906, allocations: 302.9 kB / 406.7 MB, free: 8.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.3919, allocations: 0.7974 MB / 407.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.392, allocations: 57.69 kB / 407.5 MB, free: 7.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005777/0.3926, allocations: 0.6645 MB / 408.2 MB, free: 6.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.393, allocations: 411.5 kB / 408.6 MB, free: 6.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004841/0.3935, allocations: 247.4 kB / 408.8 MB, free: 6.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3937, allocations: 406.7 kB / 409.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.3954, allocations: 0.7926 MB / 410 MB, free: 4.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.3975, allocations: 1.106 MB / 411.1 MB, free: 3.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003304/0.4008, allocations: 1.605 MB / 412.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4008, allocations: 0 / 412.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004528/0.4053, allocations: 2.036 MB / 414.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.4054, allocations: 8 kB / 414.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.4054, allocations: 4 kB / 414.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004847/0.4059, allocations: 222.4 kB / 415 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.4076, allocations: 350.2 kB / 415.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004437/0.412, allocations: 4.843 MB / 420.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.4139, allocations: 171 kB / 420.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.414, allocations: 56.17 kB / 420.4 MB, free: 9.895 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.0009714/0.415, allocations: 392.1 kB / 420.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.4152, allocations: 102.8 kB / 420.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002486/0.4155, allocations: 134.1 kB / 421 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.4155, allocations: 16 kB / 421 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.4155, allocations: 4 kB / 421 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.4155, allocations: 7.984 kB / 421 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007638/0.4232, allocations: 4.346 MB / 425.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.4232, allocations: 8 kB / 425.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.4244, allocations: 267.5 kB / 425.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005245/0.4249, allocations: 281.9 kB / 425.9 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.425, allocations: 35.98 kB / 426 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001768/0.4268, allocations: 2.2 MB / 428.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/0.4268, allocations: 15.94 kB / 428.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004529/0.4314, allocations: 2.389 MB / 430.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007966/0.4322, allocations: 319.7 kB / 430.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001967/0.4324, allocations: 51.98 kB / 430.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4335, allocations: 135.9 kB / 431.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/0.4338, allocations: 172.2 kB / 431.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.662e-05/0.4339, allocations: 47.98 kB / 431.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007707/0.4347, allocations: 0.5381 MB / 431.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4347, allocations: 4 kB / 431.8 MB, free: 14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001294/0.436, allocations: 340 kB / 432.1 MB, free: 13.67 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.0009552/0.437, allocations: 429.4 kB / 432.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004159/0.4411, allocations: 2.016 MB / 434.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.4412, allocations: 4 kB / 434.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002239/0.4434, allocations: 1.028 MB / 435.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.4448, allocations: 200.2 kB / 435.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006094/0.4509, allocations: 3.102 MB / 438.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009659/0.4519, allocations: 1.182 MB / 440.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009914/0.4529, allocations: 168.4 kB / 440.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003619/0.4533, allocations: 83.42 kB / 440.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of SimCode: time 2.655e-06/0.4533, allocations: 0 / 440.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of Templates: time 0.03281/0.4861, allocations: 18.89 MB / 459.2 MB, free: 2.617 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 -s cvode -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