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.001369/0.001369, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 62.41 kB / 306.9 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, allocations: 50.53 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01128/0.1134, allocations: 9.344 MB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005169/0.1186, allocations: 2.384 MB / 369.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.1202, allocations: 31.88 kB / 369.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.1217, allocations: 266.2 kB / 369.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002097/0.1238, allocations: 436.8 kB / 369.9 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001518/0.1254, allocations: 0.5855 MB / 370.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1788/0.3042, allocations: 2.171 MB / 372.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001978/0.3062, allocations: 1.009 MB / 373.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001503/0.3077, allocations: 0.7081 MB / 374.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.3092, allocations: 0.8055 MB / 375.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003384/0.3096, allocations: 128.7 kB / 375.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005783/0.3101, allocations: 181.3 kB / 375.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003681/0.3105, allocations: 373.9 kB / 375.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009219/0.3115, allocations: 0.843 MB / 376.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003335/0.3148, allocations: 2.787 MB / 379.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.3148, allocations: 0 / 379.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3148, allocations: 0.9688 kB / 379.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.371e-05/0.3149, allocations: 0 / 379.5 MB, free: 9.109 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.005522/0.3205, allocations: 1.955 MB / 381.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.3205, allocations: 10.78 kB / 381.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000451/0.321, allocations: 180.4 kB / 381.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.3222, allocations: 0.8413 MB / 382.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.3225, allocations: 229.8 kB / 382.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.3228, allocations: 157.2 kB / 382.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003302/0.3261, allocations: 1.678 MB / 384.5 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.096e-05/0.3262, allocations: 6.562 kB / 384.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.3263, allocations: 65.56 kB / 384.6 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.668e-05/0.3264, allocations: 37.06 kB / 384.6 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003324/0.3297, allocations: 1.531 MB / 386.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009118/0.3388, allocations: 5.897 MB / 392 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001925/0.3408, allocations: 0.9273 MB / 393 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009775/0.3418, allocations: 0.5087 MB / 393.5 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.715e-05/0.3419, allocations: 13.31 kB / 393.5 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.3431, allocations: 0.6399 MB / 394.1 MB, free: 416 kB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.896e-06/0.3431, allocations: 0 / 394.1 MB, free: 416 kB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.03361/0.3767, allocations: 8.794 MB / 402.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.3769, allocations: 305.3 kB / 403.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.3782, allocations: 0.7974 MB / 404 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.3783, allocations: 57.69 kB / 404.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000625/0.379, allocations: 0.6607 MB / 404.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003508/0.3793, allocations: 412.5 kB / 405.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004983/0.3798, allocations: 251.4 kB / 405.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.3801, allocations: 406.8 kB / 405.8 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/0.3819, allocations: 0.7887 MB / 406.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.384, allocations: 1.111 MB / 407.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/0.3875, allocations: 1.605 MB / 409.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3875, allocations: 0 / 409.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004682/0.3922, allocations: 2.032 MB / 411.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.3923, allocations: 8 kB / 411.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.3923, allocations: 8 kB / 411.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004726/0.3928, allocations: 214.4 kB / 411.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.3945, allocations: 355.4 kB / 411.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004015/0.3985, allocations: 4.47 MB / 416.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.4003, allocations: 167.7 kB / 416.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.4004, allocations: 52 kB / 416.6 MB, free: 13 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.0008645/0.4013, allocations: 404.2 kB / 417 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.4015, allocations: 102.8 kB / 417.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.4018, allocations: 130.1 kB / 417.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4018, allocations: 15.94 kB / 417.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.4018, allocations: 4 kB / 417.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.4018, allocations: 11.91 kB / 417.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007704/0.4095, allocations: 4.352 MB / 421.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.4096, allocations: 8 kB / 421.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.4107, allocations: 261.7 kB / 421.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005132/0.4112, allocations: 285.8 kB / 422.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.375e-05/0.4113, allocations: 36 kB / 422.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/0.413, allocations: 2.091 MB / 424.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/0.4131, allocations: 18.66 kB / 424.3 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.4179, allocations: 2.386 MB / 426.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007039/0.4186, allocations: 327.6 kB / 427 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003352/0.419, allocations: 47.98 kB / 427 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.4203, allocations: 145.2 kB / 427.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/0.4207, allocations: 170.5 kB / 427.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.4208, allocations: 47.98 kB / 427.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001056/0.4219, allocations: 0.542 MB / 427.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4219, allocations: 4 kB / 427.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001638/0.4235, allocations: 336 kB / 428.2 MB, free: 0.9609 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001079/0.4246, allocations: 416 kB / 428.7 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004424/0.4291, allocations: 1.993 MB / 430.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.4291, allocations: 7.938 kB / 430.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002222/0.4313, allocations: 0.9999 MB / 431.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.433, allocations: 201.3 kB / 431.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007303/0.4403, allocations: 3.854 MB / 435.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4415, allocations: 1.182 MB / 436.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005655/0.4421, allocations: 87.42 kB / 437 MB, free: 8.258 MB / 350.1 MB Notification: Performance of SimCode: time 1.253e-06/0.4421, allocations: 0 / 437 MB, free: 8.258 MB / 350.1 MB Notification: Performance of Templates: time 0.04405/0.4862, allocations: 36.61 MB / 473.6 MB, free: 3.711 MB / 382.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